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

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

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