예제 #1
0
 public void Open(SynchronizationContext synchronizationContext)
 {
     if (synchronizationContext != null)
     {
         this.synchronizationContext = synchronizationContext;
     }
     else
     {
         this.synchronizationContext = SynchronizationContextHelper.GetDefaultSynchronizationContext();
     }
 }
예제 #2
0
 public void Open(SynchronizationContext synchronizationContext)
 {
     Fx.Assert(this.synchronizationContext == null, "can only open when in the created state");
     if (synchronizationContext != null)
     {
         this.synchronizationContext = synchronizationContext;
     }
     else
     {
         this.synchronizationContext = SynchronizationContextHelper.GetDefaultSynchronizationContext();
     }
 }