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 INamedCollectionProvider and a concrete implementation of that interface.
Declaration
IBucketBuilder AddCollection<TService, TImplementation>() where TService : class, INamedCollectionProvider where TImplementation : class, TService
Returns
Type | Description |
---|---|
IBucketBuilder | The IBucketBuilder for chaining. |
Type Parameters
Name | Description |
---|---|
TService | Interface inherited from INamedCollectionProvider. |
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 |
---|---|
IScopeBuilder | The IScopeBuilder for building the scope. |