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