Class NamedBucketProvider
Base implementation for INamedBucketProvider.
Implements
Inherited Members
Namespace: Couchbase.Extensions.DependencyInjection
Assembly: Couchbase.Extensions.DependencyInjection.dll
Syntax
public abstract class NamedBucketProvider : INamedBucketProvider
Remarks
Used to simplify creating AOT-compatible instances of INamedBucketProvider.
Constructors
| Edit this page View SourceNamedBucketProvider(IBucketProvider, string)
Declaration
public NamedBucketProvider(IBucketProvider bucketProvider, string bucketName)
Parameters
Type | Name | Description |
---|---|---|
IBucketProvider | bucketProvider | |
string | bucketName |
Properties
| Edit this page View SourceBucketName
Name of the bucket.
Declaration
public 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
public virtual ValueTask<IBucket> GetBucketAsync()
Returns
Type | Description |
---|---|
ValueTask<IBucket> | The IBucket. |