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