public static SynchronizationContext GetDefaultSynchronizationContext() { if (SynchronizationContextHelper.defaultContext == null) { SynchronizationContextHelper.defaultContext = new WFDefaultSynchronizationContext(); } return SynchronizationContextHelper.defaultContext; }
public static SynchronizationContext GetDefaultSynchronizationContext() { if (SynchronizationContextHelper.defaultContext == null) { SynchronizationContextHelper.defaultContext = new WFDefaultSynchronizationContext(); } return(SynchronizationContextHelper.defaultContext); }
public static SynchronizationContext GetDefaultSynchronizationContext() { if (defaultContext == null) { defaultContext = new WFDefaultSynchronizationContext(); } return defaultContext; }
public static SynchronizationContext CloneSynchronizationContext(SynchronizationContext context) { Fx.Assert(context != null, "null context parameter"); WFDefaultSynchronizationContext wfDefaultContext = context as WFDefaultSynchronizationContext; if (wfDefaultContext != null) { Fx.Assert(SynchronizationContextHelper.s_defaultContext != null, "We must have set the static member by now!"); return(SynchronizationContextHelper.s_defaultContext); } else { return(context.CreateCopy()); } }