Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
        /// <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);
        }