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 INamed
Declaration
IScopeBuilder AddCollection<T>(string collectionName) where T : class, INamedCollectionProvider
Parameters
Type | Name | Description |
---|---|---|
string | collectionName | Name of the collection. |
Returns
Type | Description |
---|---|
IScope |
The IScope |
Type Parameters
Name | Description |
---|---|
T | Interface inherited from INamed |
Remarks
This method is not AOT-compatible. Use the overload that accepts a concrete implementation.