private static IPropertyContext CreateLocal() { var propertyContext = new PropertyContext(); propertyContext.Set("ThreadId", Thread.CurrentThread.ManagedThreadId); return(propertyContext); }
private static IPropertyContext CreateGlobal() { var propertyContext = new PropertyContext(); #if !PORTABLE propertyContext.Set("MachineName", Environment.MachineName); #endif return(propertyContext); }