WorkflowRuntime.IsStarted 속성

정의

워크플로 런타임 엔진이 시작되었는지 여부를 나타내는 값을 가져옵니다.Gets a value that indicates whether the workflow run-time engine has been started.

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

속성 값

워크플로 런타임 엔진이 시작되었으면 true이고, 그렇지 않으면 false입니다.true if the workflow run-time engine has been started; otherwise, false. 기본값은 false입니다.The default is false.

예제

다음 예제에서는 IsStarted 개체의 WorkflowRuntime 속성에 액세스하는 방법을 보여 줍니다.The following example demonstrates how to access the IsStarted property of a WorkflowRuntime object. 이 예제에서 런타임이 시작되면 메시지가 콘솔에 표시됩니다.In this example, if the runtime is started, a message is printed to the console.

// 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 indicates that the workflow run-time engine services are running. IsStarted 됩니다 false 호스트 호출할 때까지 StartRuntime입니다.IsStarted is false until the host calls StartRuntime. 또한 호스트가 true을 호출할 때까지 StopRuntime로 유지됩니다.It remains true until the host calls StopRuntime.

참고

실행되는 동안에는 워크플로 런타임 엔진에 핵심 서비스를 추가할 수 없습니다.You cannot add core services to the workflow run-time engine while it is running. 핵심 서비스는 WorkflowSchedulerService 클래스, DefaultWorkflowCommitWorkBatchService 클래스, WorkflowPersistenceService 클래스 및 TrackingService 클래스에서 파생된 서비스입니다.Core services are services that derive from the WorkflowSchedulerService class, the DefaultWorkflowCommitWorkBatchService class, the WorkflowPersistenceService class, and the TrackingService class.

적용 대상