Click or drag to resize

RequestEventRunAsyncTaskT Method

Executes the supplied task in a separate thread.

Namespace:  OBCOM.NetSwitchLib.Servers
Assembly:  OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax
public void RunAsyncTask<T>(
	Func<T> task,
	TaskResultHandler<T> handler
)

Parameters

task
Type: SystemFuncT
The task to be executed in a separate thread.
handler
Type: OBCOM.NetSwitchLib.ServersTaskResultHandlerT
Called when the task returns a value or throws an exception.

Type Parameters

T
The type of the value returned by the task.
Exceptions
ExceptionCondition
ArgumentNullException An argument is null.
See Also