예제 #1
0
        /// <inheritdoc/>
        public override async Task <bool> TryUpdateAsync(TRoot item)
        {
            var resultTask = Inner.TryUpdateAsync(item);
            await Task.WhenAll(resultTask, Tap.AddOrUpdateAsync(item)).ConfigureAwait(false);

            return(resultTask.Result);
        }
예제 #2
0
        /// <inheritdoc/>
        public override async Task <bool> TryUpdateAsync(TRoot item)
        {
            var success = await Inner.TryUpdateAsync(item).ConfigureAwait(false);

            if (success)
            {
                await Tap.AddOrUpdateAsync(item).ConfigureAwait(false);
            }
            return(success);
        }
예제 #3
0
 /// <inheritdoc/>
 public override async Task UpdateAsync(TRoot item)
 {
     await Task.WhenAll(
         Inner.UpdateAsync(item),
         Tap.AddOrUpdateAsync(item)).ConfigureAwait(false);
 }
예제 #4
0
        /// <inheritdoc/>
        public override async Task AddOrUpdateAsync(TRoot item)
        {
            await Inner.AddOrUpdateAsync(item).ConfigureAwait(false);

            await Tap.AddOrUpdateAsync(item).ConfigureAwait(false);
        }