Method Execute
Execute<TPayload>(ILocationInterceptionArgsAction<TPayload>, ref TPayload)
Executes a delegate for the current LocationInterceptionArgs. This method allows to execute strongly-typed operations and avoid boxing required by the weakly typed ILocationInterceptionArgs interface.
Declaration
void Execute<TPayload>(ILocationInterceptionArgsAction<TPayload> action, ref TPayload payload)
Parameters
Type | Name | Description |
---|---|---|
ILocationInterceptionArgsAction<TPayload> | action | Class (typically a singleton) that contains the generic method Execute<TValue>(ILocationInterceptionArgs<TValue>, ref TPayload) that will be executed with the right method generic argument. |
TPayload | payload | An argument being passed to the Execute<TValue>(ILocationInterceptionArgs<TValue>, ref TPayload) method of the |
Type Parameters
Name | Description |
---|---|
TPayload | Type of the payload. |