Table of Contents

Interface IBuilder<TSelf>

Namespace
The.Web.Composition
Assembly
Instagile.Web.Client.dll
public interface IBuilder<TSelf>

Type Parameters

TSelf
Extension Methods

Methods

Configure(Action<Options>)

TSelf Configure(Action<Options> configure)

Parameters

configure Action<Options>

Returns

TSelf

RegisterAuthentication(Func<IAuthentication, IAuthentication>)

Optionally provide an IAuthentication to use for login. Principals will still be derived from the HttpContext, but logging in can set the User of that context.

TSelf RegisterAuthentication(Func<IAuthentication, IAuthentication> wrapAuthentication)

Parameters

wrapAuthentication Func<IAuthentication, IAuthentication>

Returns

TSelf

Remarks

The factory delegate is given the default WebAuthentication in case it wants to wrap it.

RegisterAuthentication(IAuthentication)

Optionally provide an IAuthentication to use for login. Principals will still be derived from the HttpContext, but logging in can set the User of that context.

TSelf RegisterAuthentication(IAuthentication authentication)

Parameters

authentication IAuthentication

Returns

TSelf

RegisterAuthorisation(IAuthorisation)

Optionally provide an IAuthorisation to use for checking resource access.

TSelf RegisterAuthorisation(IAuthorisation authorisation)

Parameters

authorisation IAuthorisation

Returns

TSelf

RegisterDocumentStore(IDocumentStore)

Optionally provide an IDocumentStore to use instead of the default NoDocumentStore for reading and writing documents.

TSelf RegisterDocumentStore(IDocumentStore documentStore)

Parameters

documentStore IDocumentStore

Returns

TSelf

RegisterEndpoint(Func<IServiceProvider, IEndpoint>)

Optionally provide an IEndpoint to use for making RPC calls. This will be used for RemoteEntityStore if no other entitystore is specified.

TSelf RegisterEndpoint(Func<IServiceProvider, IEndpoint> getEndpoint)

Parameters

getEndpoint Func<IServiceProvider, IEndpoint>

Returns

TSelf

RegisterEntityStore(IEntityStore)

Optionally provide an IEntityStore to use for reading and writing entities. If an endpoint is registered, RemoteEntityStore will be used by default.

TSelf RegisterEntityStore(IEntityStore entityStore)

Parameters

entityStore IEntityStore

Returns

TSelf

RegisterMailer(IMailer)

Optionally provide an IMailer to use for sending email.

TSelf RegisterMailer(IMailer mailer)

Parameters

mailer IMailer

Returns

TSelf

RegisterMetadata(EntityMetadataDictionary)

Provide the generated entity metadata.

TSelf RegisterMetadata(EntityMetadataDictionary metadata)

Parameters

metadata EntityMetadataDictionary

Returns

TSelf

RegisterPersistentCache(IPersistentCache?)

Optionally provide an an external store to keep entity cache entries outside of memory.

TSelf RegisterPersistentCache(IPersistentCache? persistentCache)

Parameters

persistentCache IPersistentCache

Returns

TSelf

RegisterPreferenceStore(IPreferenceStore)

Optionally provide an IPreferenceStore to use instead of the default entity-based or in-memory store for reading and writing preferences.

TSelf RegisterPreferenceStore(IPreferenceStore preferenceStore)

Parameters

preferenceStore IPreferenceStore

Returns

TSelf

RegisterReminderStore(IReminderStore)

Optionally provide an IReminderStore used by AddTheReminders() to query reminder counts. If an endpoint is registered, RemoteReminderStore will be used by default; otherwise, the default is LocalReminderStore.

TSelf RegisterReminderStore(IReminderStore reminderStore)

Parameters

reminderStore IReminderStore

Returns

TSelf

RegisterTransientCache(TransientCache?)

Optionally replace or remove the built in memory-based entity cache.

TSelf RegisterTransientCache(TransientCache? memoryCache)

Parameters

memoryCache TransientCache

Returns

TSelf

RemoveRPC(Procedure)

Deregister a built-in remote procedure.

TSelf RemoveRPC(Procedure procedure)

Parameters

procedure Procedure

Returns

TSelf

WithLicenceChallengeResponse(string)

TSelf WithLicenceChallengeResponse(string encodedResponse)

Parameters

encodedResponse string

Returns

TSelf

WithLicenceFile(string)

TSelf WithLicenceFile(string licenseFile)

Parameters

licenseFile string

Returns

TSelf

WithLicenceResource(Assembly, string)

TSelf WithLicenceResource(Assembly embeddedResourceLocation, string embeddedResourceName)

Parameters

embeddedResourceLocation Assembly
embeddedResourceName string

Returns

TSelf