Interface INamedBucketProvider
Base interface for injecting specific buckets. Inherit an empty interface from this interface, and then use AddCouchbaseBucket<T>(IServiceCollection, string) to register the interface in the IServiceCollection.
Namespace: Couchbase.Extensions.DependencyInjection
Assembly: Couchbase.Extensions.DependencyInjection.dll
Syntax
public interface INamedBucketProvider
Properties
| Edit this page View SourceBucketName
Name of the bucket.
Declaration
string BucketName { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceGetBucketAsync()
Returns the a singleton instance of the bucket referenced by this interface. Do not dispose the bucket, it will be reused.
Declaration
ValueTask<IBucket> GetBucketAsync()
Returns
Type | Description |
---|---|
ValueTask<IBucket> | The IBucket. |