Interface IScopeBuilder
Applies additional configuration to a scope for dependency injection.
Namespace: Couchbase.Extensions.DependencyInjection
Assembly: Couchbase.Extensions.DependencyInjection.dll
Syntax
public interface IScopeBuilder
Methods
| Edit this page View SourceAddCollection<T>(string)
Register an interface based on INamedCollectionProvider which will be injected with a specific scope and collection name.
Declaration
IScopeBuilder AddCollection<T>(string collectionName) where T : class, INamedCollectionProvider
Parameters
Type | Name | Description |
---|---|---|
string | collectionName | Name of the collection. |
Returns
Type | Description |
---|---|
IScopeBuilder | The IScopeBuilder for chaining. |
Type Parameters
Name | Description |
---|---|
T | Interface inherited from INamedCollectionProvider. Must not add any members. |
Remarks
This method is not AOT-compatible. Use the overload that accepts a concrete implementation.