Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    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 Source

    BucketName

    Name of the bucket.

    Declaration
    string BucketName { get; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    GetBucketAsync()

    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.

    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.