Bagikan melalui


WorkflowRuntimeService.State Properti

Definisi

Mendapatkan status WorkflowRuntimeService.

protected:
 property System::Workflow::Runtime::Hosting::WorkflowRuntimeServiceState State { System::Workflow::Runtime::Hosting::WorkflowRuntimeServiceState get(); };
protected System.Workflow.Runtime.Hosting.WorkflowRuntimeServiceState State { get; }
member this.State : System.Workflow.Runtime.Hosting.WorkflowRuntimeServiceState
Protected ReadOnly Property State As WorkflowRuntimeServiceState

Nilai Properti

Salah WorkflowRuntimeServiceState satu nilai.

Keterangan

Kelas ini WorkflowRuntimeService menerapkan mekanisme dua fase untuk memulai dan menghentikan layanan mesin runtime alur kerja. Fase pertama mekanisme mulai dimulai ketika mesin runtime alur kerja memanggil implementasi Start metode untuk layanan. Metode ini harus memanggil implementasi Startdasar , yang diatur State ke Starting. Fase kedua terjadi setelah mesin runtime alur kerja memulai semua layanan mesin runtime alur kerjanya saat menaikkan Started peristiwa. Secara WorkflowRuntimeService internal mengelola langganan untuk peristiwa ini dan handler-nya akan diatur State ke Started.

Mekanisme dua fase untuk menghentikan layanan mesin runtime alur kerja dimulai ketika mesin runtime alur kerja memanggil implementasi Stop metode untuk layanan. Metode ini harus memanggil implementasi Stopdasar , yang diatur State ke Stopping. Setelah menghentikan semua layanan mesin runtime alur kerjanya, mesin runtime alur kerja meningkatkan Stopped peristiwa. Secara WorkflowRuntimeService internal mengelola langganan untuk peristiwa ini dan handler-nya akan diatur State ke Stopped.

Berlaku untuk