Ejemplo n.º 1
0
        public static IDisposable Push(string name)
        {
            var temp = Current;

            Current        = new StopwatchLogScope(name);
            Current.Parent = temp;
            return(new DisposableScope());
        }
Ejemplo n.º 2
0
 public static IDisposable BeginScope(string name)
 {
     return(StopwatchLogScope.Push(name));
 }