/// <inheritdoc/>
 public override async Task AddAsync(TRoot item)
 {
     try
     {
         await Inner.AddAsync(item).ConfigureAwait(false);
     }
     catch (TException ex)
     {
         if (!Handler.Invoke(ex))
         {
             throw;
         }
     }
 }
Exemple #2
0
 /// <inheritdoc/>
 public void Add(TRoot item) => AsyncExtensions.RunSynchronously(() => Inner.AddAsync(item));
Exemple #3
0
 /// <inheritdoc/>
 public override async Task AddAsync(TRoot item)
 {
     await Task.WhenAll(
         Inner.AddAsync(item),
         Tap.AddOrUpdateAsync(item)).ConfigureAwait(false);
 }