Exemplo n.º 1
0
        public static IDisposable Push <TState>(string name, TState state)
        {
            var temp = Current;

            Current        = new AzureScope <TState>(name, state);
            Current.Parent = temp;

            return(new DisposableScope());
        }
Exemplo n.º 2
0
        public IDisposable BeginScope <TState>(TState state)
        {
            if (state == null)
            {
                throw new ArgumentNullException(nameof(state));
            }

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