Couchbase .NET SDK | 3.9.0
Search Results for

    Show / Hide Table of Contents

    Interface IClusterProvider

    Provides access to a Couchbase cluster.

    Inherited Members
    IDisposable.Dispose()
    IAsyncDisposable.DisposeAsync()
    Namespace: Couchbase.Extensions.DependencyInjection
    Assembly: Couchbase.Extensions.DependencyInjection.dll
    Syntax
    public interface IClusterProvider : IDisposable, IAsyncDisposable

    Methods

    | Edit this page View Source

    GetClusterAsync()

    Returns the Couchbase cluster.

    Declaration
    ValueTask<ICluster> GetClusterAsync()
    Returns
    Type Description
    ValueTask<ICluster>
    | Edit this page View Source

    GetClusterAsync(CancellationToken)

    Returns the Couchbase cluster.

    Declaration
    ValueTask<ICluster> GetClusterAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken

    Cancellation token.

    Returns
    Type Description
    ValueTask<ICluster>
    Remarks

    If the cancellationToken is canceled, the attempt to connect to the Couchbase cluster may not be canceled. Instead, only the wait for the result will be canceled.

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