public static IDisposable Push <TState>(string name, TState state) { var temp = Current; Current = new AzureScope <TState>(name, state); Current.Parent = temp; return(new DisposableScope()); }
public IDisposable BeginScope <TState>(TState state) { if (state == null) { throw new ArgumentNullException(nameof(state)); } return(AzureScope.Push(Name, state)); }