Condividi tramite


JoinableTaskFactory.PostToUnderlyingSynchronizationContext Method

Definition

Posts a message to the specified underlying SynchronizationContext for processing when the main thread is freely available.

protected public:
 virtual void PostToUnderlyingSynchronizationContext(System::Threading::SendOrPostCallback ^ callback, System::Object ^ state);
protected internal virtual void PostToUnderlyingSynchronizationContext (System.Threading.SendOrPostCallback callback, object state);
abstract member PostToUnderlyingSynchronizationContext : System.Threading.SendOrPostCallback * obj -> unit
override this.PostToUnderlyingSynchronizationContext : System.Threading.SendOrPostCallback * obj -> unit
Protected Friend Overridable Sub PostToUnderlyingSynchronizationContext (callback As SendOrPostCallback, state As Object)

Parameters

callback
SendOrPostCallback

The callback to invoke.

state
Object

State to pass to the callback.

Applies to