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

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

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

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

            return(propertyContext);
        }