WorkflowPersistenceService Oluşturucu

Tanım

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

C#
protected WorkflowPersistenceService ();

Örnekler

Aşağıdaki örnekte sınıfının (öğesinden WorkflowPersistenceServicetüretilmiş) bir örneğinin SqlWorkflowPersistenceService oluşturulması gösterilmektedir. Bu örnek, Program.cs sınıfından İç İçe Özel Durum İşleyicileri SDK örneğinden alınıyor. Daha fazla bilgi için bkz. İç İçe Özel Durum İşleyicileri Örneği.

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

Şunlara uygulanır

Ürün Sürümler
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8