Class BucketBuilderExtensions
Extensions for IBucketBuilder and IScopeBuilder.
Inherited Members
Namespace: Couchbase.Extensions.DependencyInjection
Assembly: Couchbase.Extensions.DependencyInjection.dll
Syntax
public static class BucketBuilderExtensions
Methods
| Edit this page 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. |
Remarks
This method is not AOT-compatible. Use the overload that accepts a concrete implementation.
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. |