Table of Contents

Class BuilderServiceCollection

Namespace
The.Web.Composition
Assembly
Instagile.Web.Client.dll
public sealed class BuilderServiceCollection : IServiceCollection, IList<ServiceDescriptor>, ICollection<ServiceDescriptor>, IEnumerable<ServiceDescriptor>, IEnumerable, IBuilder<BuilderServiceCollection>
Inheritance
BuilderServiceCollection
Implements
Inherited Members
Extension Methods

Constructors

BuilderServiceCollection(IBuilder<Builder>, IServiceCollection)

public BuilderServiceCollection(IBuilder<Builder> builder, IServiceCollection inner)

Parameters

builder IBuilder<Builder>
inner IServiceCollection

Methods

Configure(Action<Options>)

public BuilderServiceCollection Configure(Action<Options> configure)

Parameters

configure Action<Options>

Returns

BuilderServiceCollection

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.

public BuilderServiceCollection RegisterAuthentication(Func<IAuthentication, IAuthentication> wrapAuthentication)

Parameters

wrapAuthentication Func<IAuthentication, IAuthentication>

Returns

BuilderServiceCollection

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.

public BuilderServiceCollection RegisterAuthentication(IAuthentication authentication)

Parameters

authentication IAuthentication

Returns

BuilderServiceCollection

RegisterAuthorisation(IAuthorisation)

Optionally provide an IAuthorisation to use for checking resource access.

public BuilderServiceCollection RegisterAuthorisation(IAuthorisation authorisation)

Parameters

authorisation IAuthorisation

Returns

BuilderServiceCollection

RegisterDocumentStore(IDocumentStore)

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

public BuilderServiceCollection RegisterDocumentStore(IDocumentStore documentStore)

Parameters

documentStore IDocumentStore

Returns

BuilderServiceCollection

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.

public BuilderServiceCollection RegisterEndpoint(Func<IServiceProvider, IEndpoint> getEndpoint)

Parameters

getEndpoint Func<IServiceProvider, IEndpoint>

Returns

BuilderServiceCollection

RegisterEntityStore(IEntityStore)

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

public BuilderServiceCollection RegisterEntityStore(IEntityStore store)

Parameters

store IEntityStore

Returns

BuilderServiceCollection

RegisterMailer(IMailer)

Optionally provide an IMailer to use for sending email.

public BuilderServiceCollection RegisterMailer(IMailer mailer)

Parameters

mailer IMailer

Returns

BuilderServiceCollection

RegisterMetadata(EntityMetadataDictionary)

Provide the generated entity metadata.

public BuilderServiceCollection RegisterMetadata(EntityMetadataDictionary metadata)

Parameters

metadata EntityMetadataDictionary

Returns

BuilderServiceCollection

RegisterPersistentCache(IPersistentCache?)

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

public BuilderServiceCollection RegisterPersistentCache(IPersistentCache? persistentCache)

Parameters

persistentCache IPersistentCache

Returns

BuilderServiceCollection

RegisterPreferenceStore(IPreferenceStore)

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

public BuilderServiceCollection RegisterPreferenceStore(IPreferenceStore preferenceStore)

Parameters

preferenceStore IPreferenceStore

Returns

BuilderServiceCollection

RegisterReminderStore(IReminderStore)

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

public BuilderServiceCollection RegisterReminderStore(IReminderStore reminderStore)

Parameters

reminderStore IReminderStore

Returns

BuilderServiceCollection

RegisterTransientCache(TransientCache?)

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

public BuilderServiceCollection RegisterTransientCache(TransientCache? memoryCache)

Parameters

memoryCache TransientCache

Returns

BuilderServiceCollection

RemoveRPC(Procedure)

Deregister a built-in remote procedure.

public BuilderServiceCollection RemoveRPC(Procedure procedure)

Parameters

procedure Procedure

Returns

BuilderServiceCollection

WithLicenceChallengeResponse(string)

public BuilderServiceCollection WithLicenceChallengeResponse(string encodedResponse)

Parameters

encodedResponse string

Returns

BuilderServiceCollection

WithLicenceFile(string)

public BuilderServiceCollection WithLicenceFile(string licenseFile)

Parameters

licenseFile string

Returns

BuilderServiceCollection

WithLicenceResource(Assembly, string)

public BuilderServiceCollection WithLicenceResource(Assembly embeddedResourceLocation, string embeddedResourceName)

Parameters

embeddedResourceLocation Assembly
embeddedResourceName string

Returns

BuilderServiceCollection