BackgroundThreadQueueTStartBackgroundThread Method |
Creates and starts the background thread that will pop objects from the queue and process them.
Namespace: VirtualRadar.InterfaceAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public void StartBackgroundThread(
Action<T> processObject,
Action<Exception> processException
)
Public Sub StartBackgroundThread (
processObject As Action(Of T),
processException As Action(Of Exception)
)
public:
void StartBackgroundThread(
Action<T>^ processObject,
Action<Exception^>^ processException
)
member StartBackgroundThread :
processObject : Action<'T> *
processException : Action<Exception> -> unit
Parameters
- processObject
- Type: SystemActionT
A delegate that will be called on a background thread with each object popped from the queue. In ThreadPool mode this can be
called in parallel, in all other modes it is called in series.
- processException
- Type: SystemActionException
A delegate called on a background thread with the details of an exception that was caught during processObject's execution.
In ThreadPool mode this can be called in parallel, in all other modes it is called in series.
See Also