WorkflowSchedulerService.WorkflowSchedulerService Constructor

When implemented in a derived class, initializes a new instance of the WorkflowSchedulerService class.

Namespace: System.Workflow.Runtime.Hosting
Assembly: System.Workflow.Runtime (in system.workflow.runtime.dll)

protected WorkflowSchedulerService ()
protected WorkflowSchedulerService ()
protected function WorkflowSchedulerService ()
Not applicable.

The following example demonstrates creating an instance of a SqlWorkflowPersistenceService object (that inherits from WorkflowPersistenceService) and adding it to the runtime. This snippet is from the Nested Exception Handlers SDK sample, from the Program.cs file. For more information, see Nested Exception Handlers Sample.

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: