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 SourceClose()
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()
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 |