WorkflowSchedulerService Construtor

Definição

Quando implementado em uma classe derivada, inicializa uma nova instância da classe WorkflowSchedulerService.

protected:
 WorkflowSchedulerService();
protected WorkflowSchedulerService ();
Protected Sub New ()

Exemplos

O exemplo a seguir demonstra a criação de uma instância de um SqlWorkflowPersistenceService objeto (que herda de WorkflowPersistenceService) e adicionando-a ao runtime. Este exemplo é do exemplo do SDK de Manipuladores de Exceção Aninhados, do arquivo Program.cs. Para obter mais informações, consulte Exemplo de Manipuladores de Exceção Aninhados.

// A workflow is always run asychronously; the main thread waits on this event so the program
// doesn't exit before the workflow completes
workflowRuntime.AddService(new SqlWorkflowPersistenceService("Initial Catalog=SqlPersistenceService;Data Source=localhost;Integrated Security=SSPI;"));
' A workflow is always run asychronously the main thread waits on Me event so the program
' doesn't exit before the workflow completes
WorkflowRuntime.AddService(New SqlWorkflowPersistenceService("Initial Catalog=SqlPersistenceServiceData Source=localhostIntegrated Security=SSPI"))

Aplica-se a