Begins asynchronous execute operation which executes a task on a specific space node. The space node it will
execute on is controlled by the routing value provided as a second parameter.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
IAsyncResult<T> BeginExecute<T>( ISpaceTask<T> task, Object routing, ITransaction tx, AsyncCallback<T> userCallback, Object stateObject )
Function BeginExecute(Of T) ( _ task As ISpaceTask(Of T), _ routing As Object, _ tx As ITransaction, _ userCallback As AsyncCallback(Of T), _ stateObject As Object _ ) As IAsyncResult(Of T)
generic<typename T> IAsyncResult<T>^ BeginExecute( ISpaceTask<T>^ task, Object^ routing, ITransaction^ tx, AsyncCallback<T>^ userCallback, Object^ stateObject )
Generic Template Parameters
- T
- Type of task execution result.
Parameters
- task (ISpaceTask<(Of <(<'T>)>)>)
- The space task to execute.
- routing (Object)
- Controls routing of the task.
- tx (ITransaction)
- The transaction (if any) under which to work.
- userCallback (AsyncCallback<(Of <(<'T>)>)>)
- The method to be called when the asynchronous operation is complete.
- stateObject (Object)
- A user-provided object that distinguishes this particular asynchronous read request from other requests.
Return Value
An IAsyncResult that references the asynchronous execution.