Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    Interface ICouchbaseLifetimeService

    Provides a method to gracefully close the Couchbase connections during application shutdown.

    Namespace: Couchbase.Extensions.DependencyInjection
    Assembly: Couchbase.Extensions.DependencyInjection.dll
    Syntax
    public interface ICouchbaseLifetimeService

    Methods

    | Edit this page View Source

    Close()

    Close all open Couchbase buckets and clusters. If using the default implementations, this operation cannot be reversed without rebuilding the service provider.

    Declaration
    void Close()
    | Edit this page View Source

    CloseAsync()

    Close all open Couchbase buckets and clusters. If using the default implementations, this operation cannot be reversed without rebuilding the service provider.

    Declaration
    ValueTask CloseAsync()
    Returns
    Type Description
    ValueTask
    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.