Example #1
0
        public static IDisposable Push(string key, object state)
        {
            var temp = Current;

            Current        = new LogScope(key, state);
            Current.Parent = temp;

            return(new DisposableScope());
        }
Example #2
0
 public IDisposable SetTraceIdScope(string traceId)
 {
     return(LogScope.Push("TraceId", traceId));
 }