PromisesWithInvokerT Method |
Changes the invokation logic of the promise (e.g. to trigger invokation on the UI thread)
Namespace: Innovator.ClientAssembly: Innovator.Client (in Innovator.Client.dll) Version: 2016.1.15.1759 (2016.01.15.1759)
Syntax public static IPromise<T> WithInvoker<T>(
this IPromise<T> promise,
Action<Delegate, Object[]> invoker
)
<ExtensionAttribute>
Public Shared Function WithInvoker(Of T) (
promise As IPromise(Of T),
invoker As Action(Of Delegate, Object())
) As IPromise(Of T)
Parameters
- promise
- Type: Innovator.ClientIPromiseT
- invoker
- Type: SystemActionDelegate, Object
Type Parameters
- T
Return Value
Type:
IPromiseTThe original promise with the new invokation logic
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IPromiseT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also