/// <inheritdoc cref="IScopeContextCreator{T}"/> public IDisposable CreateReadScope(Func <T> contextBuilder) { CurrentContexts = CurrentContexts.Push(contextBuilder.Invoke()); return(new PopWhenDisposed()); }
/// <inheritdoc cref="IContextLocator{T}"/> public T GetCurrentDbContext() => CurrentContexts.Peek();