예제 #1
0
        public static IDisposable Push(string name)
        {
            var temp = Current;

            Current        = new StopwatchLogScope(name);
            Current.Parent = temp;
            return(new DisposableScope());
        }
예제 #2
0
 public static IDisposable BeginScope(string name)
 {
     return(StopwatchLogScope.Push(name));
 }