WorkflowRuntime.IsStarted Propiedad

Definición

Obtiene un valor que indica si se inició el motor en tiempo de ejecución de flujo de trabajo.

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

Valor de propiedad

Boolean

true si se inició el motor en tiempo de ejecución de flujo de trabajo; de lo contrario, false. De manera predeterminada, es false.

Ejemplos

El ejemplo siguiente muestra cómo tener acceso a la propiedad IsStarted de un objeto WorkflowRuntime. En este ejemplo, si se inicia el tiempo de ejecución, se imprime un mensaje en la consola.

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

Comentarios

IsStarted indica que los servicios de tiempo de ejecución de flujo de trabajo se están ejecutando. IsStarted es false hasta que el host llama a StartRuntime. Sigue siendo true hasta que el host llame StopRuntime.

Nota

No pueden agregar servicios centrales al motor en tiempo de ejecución de flujo de trabajo mientras se está ejecutando. Los servicios centrales son servicios que derivan de la clase WorkflowSchedulerService, la clase DefaultWorkflowCommitWorkBatchService, la clase WorkflowPersistenceService y la clase TrackingService.

Se aplica a