Beispiel #1
0
        private static IPropertyContext CreateGlobal()
        {
            var propertyContext = new PropertyContext();

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

            return(propertyContext);
        }
Beispiel #2
0
        private static IPropertyContext CreateLocal()
        {
            var propertyContext = new PropertyContext();

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

            return(propertyContext);
        }