[This is preliminary documentation and is subject to change.]
Executes a method with two parameters on a ThreadPool thread.
Declaration Syntax
C# |
public void CallConcurrent<T, U>( Work<T, U> work, T parameter1, U parameter2 )
Generic Template Parameters
- T
- The type of the first parameter to pass to the method.
- U
- The type of the second parameter to pass to the method.
Parameters
- work (Work<(Of <(<'T, U>)>)>)
- A delegate which will be executed on the thread.
- parameter1 (T)
- The first parameter which will be passed to the work delegate call.
- parameter2 (U)
- The second parameter which will be passed to the work delegate call.
Remarks
This method ensures that ActiveSession is set
correctly to this Session on the new thread.