TaskServiceCreateFromToken Method

Creates a new TaskService instance from a token. Given that a TaskService instance is thread specific, this is the preferred method for multi-thread creation or asynchronous method parameters.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public static TaskService CreateFromToken(
	TaskServiceConnectionToken token
)

Parameters

token  TaskServiceConnectionToken
The token.

Return Value

TaskService
A TaskService instance valid for the thread calling this method.

See Also