in src/CosmosCache.cs [452:473]
private async Task ConnectAsync(CancellationToken token = default(CancellationToken))
{
token.ThrowIfCancellationRequested();
if (this.cosmosContainer != null)
{
return;
}
await this.connectionLock.WaitAsync(token).ConfigureAwait(false);
try
{
if (this.cosmosContainer == null)
{
this.cosmosContainer = await this.CosmosContainerInitializeAsync().ConfigureAwait(false);
}
}
finally
{
this.connectionLock.Release();
}
}