示例#1
0
 public IAsyncOperation Invoke(SendOrPostCallback d, object state)
 {
     if (_mainThreadContext == SynchronizationContext.Current)
     {
         return(AsyncResult.FromAction(d, state));
     }
     else
     {
         return(Post(d, state));
     }
 }