public static IDisposable Push(string key, object state) { var temp = Current; Current = new LogScope(key, state); Current.Parent = temp; return(new DisposableScope()); }
public IDisposable SetTraceIdScope(string traceId) { return(LogScope.Push("TraceId", traceId)); }