Share via


WorkflowSchedulerService Constructor

Definición

Cuando se implementa en una clase derivada, inicializa una instancia nueva de la clase WorkflowSchedulerService.

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

Ejemplos

El ejemplo siguiente muestra cómo se crea una instancia de un objeto SqlWorkflowPersistenceService (eso hereda de WorkflowPersistenceService) y lo agrega al tiempo de ejecución. Este ejemplo forma parte de la muestra de SDK de controladores de excepciones anidados, del archivo Program.cs. Para obtener más información, vea Ejemplo de controladores de excepciones anidados.

// 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"))

Se aplica a