/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/openiddict/openiddict-core for more information concerning
* the license and the contributors participating to this project.
*/
using System.ComponentModel;
namespace OpenIddict.MongoDb;
///
/// Exposes the MongoDB database used by the OpenIddict stores.
///
[EditorBrowsable(EditorBrowsableState.Advanced)]
public interface IOpenIddictMongoDbContext
{
///
/// Gets the .
///
///
/// A that can be used to monitor the
/// asynchronous operation, whose result returns the MongoDB database.
///
ValueTask GetDatabaseAsync(CancellationToken cancellationToken);
}