/// <summary> /// Adds a scheme asynchronously. /// </summary> /// <param name="definition">The definition.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns></returns> public override async Task AddAsync(TSchemeDefinition definition, CancellationToken cancellationToken = default(CancellationToken)) { await base.AddAsync(definition, cancellationToken); await _store.AddAsync(definition, cancellationToken); }
/// <summary> /// Adds a scheme asynchronously. /// </summary> /// <param name="definition">The definition.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns></returns> public override async Task AddAsync(TSchemeDefinition definition, CancellationToken cancellationToken = default) { await base.AddAsync(definition, cancellationToken).ConfigureAwait(false); await _store.AddAsync(definition, cancellationToken).ConfigureAwait(false); }