Compartilhar via


SafeDispatcher.InvokeAsync<TResult> Method (Func<TResult>, DispatcherPriority, CancellationToken, Boolean)

 

Namespace:   Microsoft.Crm.UnifiedServiceDesk.Dynamics.Utilities
Assembly:  Microsoft.Crm.UnifiedServiceDesk.Dynamics (in Microsoft.Crm.UnifiedServiceDesk.Dynamics.dll)

Syntax

public DispatcherOperation<TResult> InvokeAsync<TResult>(
    Func<TResult> callback,
    DispatcherPriority dispatcherPriority,
    CancellationToken cancellationToken,
    bool runOnMainUiThread = true
)
Public Function InvokeAsync(Of TResult) (
    callback As Func(Of TResult),
    dispatcherPriority As DispatcherPriority,
    cancellationToken As CancellationToken,
    runOnMainUiThread As Boolean
) As DispatcherOperation(Of TResult)

Parameters

Return Value

Type: System.Windows.Threading.DispatcherOperation<TResult>

Type Parameters

  • TResult

See Also

InvokeAsync Overload
SafeDispatcher Class
Microsoft.Crm.UnifiedServiceDesk.Dynamics.Utilities Namespace

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright