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
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
wrapAuthenticationFunc<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
authenticationIAuthentication
Returns
- TSelf
RegisterAuthorisation(IAuthorisation)
Optionally provide an IAuthorisation to use for checking resource access.
TSelf RegisterAuthorisation(IAuthorisation authorisation)
Parameters
authorisationIAuthorisation
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
documentStoreIDocumentStore
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
getEndpointFunc<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
entityStoreIEntityStore
Returns
- TSelf
RegisterMailer(IMailer)
Optionally provide an IMailer to use for sending email.
TSelf RegisterMailer(IMailer mailer)
Parameters
mailerIMailer
Returns
- TSelf
RegisterMetadata(EntityMetadataDictionary)
Provide the generated entity metadata.
TSelf RegisterMetadata(EntityMetadataDictionary metadata)
Parameters
metadataEntityMetadataDictionary
Returns
- TSelf
RegisterPersistentCache(IPersistentCache?)
Optionally provide an an external store to keep entity cache entries outside of memory.
TSelf RegisterPersistentCache(IPersistentCache? persistentCache)
Parameters
persistentCacheIPersistentCache
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
preferenceStoreIPreferenceStore
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
reminderStoreIReminderStore
Returns
- TSelf
RegisterTransientCache(TransientCache?)
Optionally replace or remove the built in memory-based entity cache.
TSelf RegisterTransientCache(TransientCache? memoryCache)
Parameters
memoryCacheTransientCache
Returns
- TSelf
RemoveRPC(Procedure)
Deregister a built-in remote procedure.
TSelf RemoveRPC(Procedure procedure)
Parameters
procedureProcedure
Returns
- TSelf
WithLicenceChallengeResponse(string)
TSelf WithLicenceChallengeResponse(string encodedResponse)
Parameters
encodedResponsestring
Returns
- TSelf
WithLicenceFile(string)
TSelf WithLicenceFile(string licenseFile)
Parameters
licenseFilestring
Returns
- TSelf
WithLicenceResource(Assembly, string)
TSelf WithLicenceResource(Assembly embeddedResourceLocation, string embeddedResourceName)
Parameters
Returns
- TSelf