sdk/dotnet/src/Microsoft.Datasync.Client/Offline/AbstractOfflineStore.cs
/// <summary>
/// Ensures that the store has been initialized.
/// </summary>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A task that completes when the store has been initialized.</returns>
Ensures that the store has been initialized.
Ensures that the store has been initialized .
protected async Task EnsureInitializedAsync(CancellationToken cancellationToken)
        {
            using (await initializationLock.AcquireAsync(cancellationToken).ConfigureAwait(false))
            {
                if (!Initialized)
                {
                    throw new InvalidOperationException("The offline store must be initialized before it can be used.");
                }
            }
        }
protected async Task EnsureInitializedAsync ( CancellationToken cancellationToken ) { using ( await initializationLock . AcquireAsync ( cancellationToken ) . ConfigureAwait ( false ) ) { if ( ! Initialized ) { throw new InvalidOperationException ( " " ) ; } } }
Ensures that the store has been initialized.
Ensures that the store has been initialized .
A task that completes when the store has been initialized.
A task that completes when the store has been initialized .
cancellationToken
CancellationToken
A  to observe.
A to observe .