Class BucketBuilderExtensions
Extensions for IBucketBuilder and IScopeBuilder.
Namespace: Couchbase.Extensions.DependencyInjection
Assembly: Couchbase.Extensions.DependencyInjection.dll
Syntax
public static class BucketBuilderExtensions : object
Methods
| Improve this Doc View SourceAddDefaultCollection<T>(IBucketBuilder)
Register an interface based on INamedCollectionProvider which will be injected with the default scope/collection.
Declaration
public static IScopeBuilder AddDefaultCollection<T>(this IBucketBuilder builder)
where T : class, INamedCollectionProvider
Parameters
Type | Name | Description |
---|---|---|
IBucketBuilder | builder | The bucket builder. |
Returns
Type | Description |
---|---|
IScopeBuilder | The IScopeBuilder for the default scope, used for chaining. |
Type Parameters
Name | Description |
---|---|
T | Interface inherited from INamedCollectionProvider. Must not add any members. |
AddDefaultScope(IBucketBuilder)
Begin building the default scope.
Declaration
public static IScopeBuilder AddDefaultScope(this IBucketBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IBucketBuilder | builder | The bucket builder. |
Returns
Type | Description |
---|---|
IScopeBuilder | The IScopeBuilder for building the scope. |