Exemplo n.º 1
0
        public static IDisposable Push(string key, object state)
        {
            var temp = Current;

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

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