Exemplo n.º 1
0
        private static IPropertyContext CreateGlobal()
        {
            var propertyContext = new PropertyContext();

            propertyContext.Set("MachineName", Environment.MachineName);

            return(propertyContext);
        }
Exemplo n.º 2
0
        private static IPropertyContext CreateLocal()
        {
            var propertyContext = new PropertyContext();

            propertyContext.Set("ThreadId", Thread.CurrentThread.ManagedThreadId);

            return(propertyContext);
        }