Aracılığıyla paylaş


WorkflowSchedulerService Oluşturucu

Tanım

Türetilmiş bir sınıfta uygulandığında sınıfının yeni bir örneğini WorkflowSchedulerService başlatır.

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

Örnekler

Aşağıdaki örnek, bir nesnenin (öğesinden WorkflowPersistenceServicedevralan) bir SqlWorkflowPersistenceService örneğini oluşturmayı ve çalışma zamanına eklemeyi gösterir. Bu örnek, Program.cs dosyasından İç İçe Özel Durum İşleyicileri SDK örneğinden alınıyor. Daha fazla bilgi için bkz. İç İçe Özel Durum İşleyicileri Örneği.

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

Şunlara uygulanır