WorkflowRuntime.IsStarted 속성

정의

워크플로 런타임 엔진이 시작되었는지 여부를 나타내는 값을 가져옵니다.

public:
 property bool IsStarted { bool get(); };
public bool IsStarted { get; }
member this.IsStarted : bool
Public ReadOnly Property IsStarted As Boolean

속성 값

Boolean

워크플로 런타임 엔진이 시작되었으면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

예제

다음 예제에서는 IsStarted 개체의 WorkflowRuntime 속성에 액세스하는 방법을 보여 줍니다. 이 예제에서 런타임이 시작되면 메시지가 콘솔에 표시됩니다.

// Create a new workflow runtime
WorkflowRuntime workflowRuntime = new WorkflowRuntime();
// Start the runtime
workflowRuntime.StartRuntime();
// If the runtime is started, report to the console.
if (workflowRuntime.IsStarted)
    Console.WriteLine("Runtime is started.");
' Create a new workflow runtime
Dim workflowRuntime As New WorkflowRuntime()
' Start the runtime
workflowRuntime.StartRuntime()
' If the runtime is started, report to the console.
If workflowRuntime.IsStarted Then
    Console.WriteLine("Runtime is started.")
End If

설명

IsStarted는 워크플로 런타임 엔진 서비스가 실행 중임을 나타냅니다. IsStarted 됩니다 false 호스트 호출할 때까지 StartRuntime입니다. 또한 호스트가 true을 호출할 때까지 StopRuntime로 유지됩니다.

참고

실행되는 동안에는 워크플로 런타임 엔진에 핵심 서비스를 추가할 수 없습니다. 핵심 서비스는 WorkflowSchedulerService 클래스, DefaultWorkflowCommitWorkBatchService 클래스, WorkflowPersistenceService 클래스 및 TrackingService 클래스에서 파생된 서비스입니다.

적용 대상