Share via


SafeDispatcher.InvokeAsync Method

Definition

Overloads

InvokeAsync(Action, Boolean)
InvokeAsync(Action, DispatcherPriority, Boolean)
InvokeAsync(Action, DispatcherPriority, CancellationToken, Boolean)
InvokeAsync<TResult>(Func<TResult>, DispatcherPriority, Boolean)
InvokeAsync<TResult>(Func<TResult>, DispatcherPriority, CancellationToken, Boolean)
InvokeAsync<TResult>(Func<TResult>, Boolean)

InvokeAsync(Action, Boolean)

public System.Windows.Threading.DispatcherOperation InvokeAsync (Action callback, bool runOnMainUiThread = true);
member this.InvokeAsync : Action * bool -> System.Windows.Threading.DispatcherOperation
Public Function InvokeAsync (callback As Action, Optional runOnMainUiThread As Boolean = true) As DispatcherOperation

Parameters

callback
Action
runOnMainUiThread
Boolean

Returns

Applies to

InvokeAsync(Action, DispatcherPriority, Boolean)

public System.Windows.Threading.DispatcherOperation InvokeAsync (Action callback, System.Windows.Threading.DispatcherPriority dispatcherPriority, bool runOnMainUiThread = true);
member this.InvokeAsync : Action * System.Windows.Threading.DispatcherPriority * bool -> System.Windows.Threading.DispatcherOperation
Public Function InvokeAsync (callback As Action, dispatcherPriority As DispatcherPriority, Optional runOnMainUiThread As Boolean = true) As DispatcherOperation

Parameters

callback
Action
dispatcherPriority
DispatcherPriority
runOnMainUiThread
Boolean

Returns

Applies to

InvokeAsync(Action, DispatcherPriority, CancellationToken, Boolean)

public System.Windows.Threading.DispatcherOperation InvokeAsync (Action callback, System.Windows.Threading.DispatcherPriority dispatcherPriority, System.Threading.CancellationToken cancellationToken, bool runOnMainUiThread = true);
member this.InvokeAsync : Action * System.Windows.Threading.DispatcherPriority * System.Threading.CancellationToken * bool -> System.Windows.Threading.DispatcherOperation
Public Function InvokeAsync (callback As Action, dispatcherPriority As DispatcherPriority, cancellationToken As CancellationToken, Optional runOnMainUiThread As Boolean = true) As DispatcherOperation

Parameters

callback
Action
dispatcherPriority
DispatcherPriority
cancellationToken
CancellationToken
runOnMainUiThread
Boolean

Returns

Applies to

InvokeAsync<TResult>(Func<TResult>, DispatcherPriority, Boolean)

public System.Windows.Threading.DispatcherOperation<TResult> InvokeAsync<TResult> (Func<TResult> callback, System.Windows.Threading.DispatcherPriority dispatcherPriority, bool runOnMainUiThread = true);
member this.InvokeAsync : Func<'Result> * System.Windows.Threading.DispatcherPriority * bool -> System.Windows.Threading.DispatcherOperation<'Result>
Public Function InvokeAsync(Of TResult) (callback As Func(Of TResult), dispatcherPriority As DispatcherPriority, Optional runOnMainUiThread As Boolean = true) As DispatcherOperation(Of TResult)

Type Parameters

TResult

Parameters

callback
Func<TResult>
dispatcherPriority
DispatcherPriority
runOnMainUiThread
Boolean

Returns

Applies to

InvokeAsync<TResult>(Func<TResult>, DispatcherPriority, CancellationToken, Boolean)

public System.Windows.Threading.DispatcherOperation<TResult> InvokeAsync<TResult> (Func<TResult> callback, System.Windows.Threading.DispatcherPriority dispatcherPriority, System.Threading.CancellationToken cancellationToken, bool runOnMainUiThread = true);
member this.InvokeAsync : Func<'Result> * System.Windows.Threading.DispatcherPriority * System.Threading.CancellationToken * bool -> System.Windows.Threading.DispatcherOperation<'Result>
Public Function InvokeAsync(Of TResult) (callback As Func(Of TResult), dispatcherPriority As DispatcherPriority, cancellationToken As CancellationToken, Optional runOnMainUiThread As Boolean = true) As DispatcherOperation(Of TResult)

Type Parameters

TResult

Parameters

callback
Func<TResult>
dispatcherPriority
DispatcherPriority
cancellationToken
CancellationToken
runOnMainUiThread
Boolean

Returns

Applies to

InvokeAsync<TResult>(Func<TResult>, Boolean)

public System.Windows.Threading.DispatcherOperation<TResult> InvokeAsync<TResult> (Func<TResult> callback, bool runOnMainUiThread = true);
member this.InvokeAsync : Func<'Result> * bool -> System.Windows.Threading.DispatcherOperation<'Result>
Public Function InvokeAsync(Of TResult) (callback As Func(Of TResult), Optional runOnMainUiThread As Boolean = true) As DispatcherOperation(Of TResult)

Type Parameters

TResult

Parameters

callback
Func<TResult>
runOnMainUiThread
Boolean

Returns

Applies to