Interface IBucketBuilder
Applies additional configuration to a bucket for dependency injection.
Namespace: Couchbase.Extensions.DependencyInjection
Assembly: Couchbase.Extensions.DependencyInjection.dll
Syntax
public interface IBucketBuilder
Methods
| Edit this page View SourceAddCollection<TService, TImplementation>()
Register a collection via an interface based on INamed
Declaration
IBucketBuilder AddCollection<TService, TImplementation>() where TService : class, INamedCollectionProvider where TImplementation : class, TService
Returns
Type | Description |
---|---|
IBucket |
The IBucket |
Type Parameters
Name | Description |
---|---|
TService | Interface inherited from INamed |
TImplementation | Concrete implementation of |
AddScope(string)
Begin building a scope with one or more collections.
Declaration
IScopeBuilder AddScope(string scopeName)
Parameters
Type | Name | Description |
---|---|---|
string | scopeName | Name of the scope. |
Returns
Type | Description |
---|---|
IScope |
The IScope |