コード例 #1
0
        public static IDisposable Push(string name, object state)
        {
            var temp = Current;
            Current = new MemoryLogScope(name, state);
            Current.Parent = temp;

            return new DisposableScope();
        }
コード例 #2
0
        public static IDisposable Push(string name, object state)
        {
            var temp = Current;

            Current        = new MemoryLogScope(name, state);
            Current.Parent = temp;

            return(new DisposableScope());
        }
コード例 #3
0
ファイル: MemoryLogger.cs プロジェクト: sk8tz/Logging.Memory
        public IDisposable BeginScope <TState>(TState state)
        {
            if (state == null)
            {
                throw new ArgumentNullException(nameof(state));
            }

            return(MemoryLogScope.Push(Name, state));
        }