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