Share via


WorkflowPersistenceService Constructor

Definición

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

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

Ejemplos

En el ejemplo siguiente se muestra cómo crear una instancia de la clase SqlWorkflowPersistenceService (derivada de WorkflowPersistenceService). Este ejemplo forma parte de la muestra de SDK de Controladores de excepciones anidados, de la clase Program.cs. Para obtener más información, consulte el 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