WorkflowInstance.WorkflowInstanceControl WorkflowInstance.WorkflowInstanceControl WorkflowInstance.WorkflowInstanceControl Struct

定義

提供方法,讓 WorkflowInstance 衍生類別能夠存取工作流程執行階段的功能。Provides methods for WorkflowInstance derived classes to access the functionality of the workflow runtime.

protected: value class WorkflowInstance::WorkflowInstanceControl
protected struct WorkflowInstance.WorkflowInstanceControl
Protected Structure WorkflowInstance.WorkflowInstanceControl
繼承
WorkflowInstance.WorkflowInstanceControlWorkflowInstance.WorkflowInstanceControlWorkflowInstance.WorkflowInstanceControl

屬性

HasPendingTrackingRecords HasPendingTrackingRecords HasPendingTrackingRecords

由工作流程執行階段呼叫,以判斷這個工作流程執行個體是否具有暫止追蹤記錄及追蹤參與者。Called by the workflow runtime to determine whether this workflow instance has pending tracking records and a tracking participant.

IsPersistable IsPersistable IsPersistable

取得值,這個值指出 WorkflowInstance 是否處於可保存的狀態。Gets a value that indicates whether the WorkflowInstance is in a state where it can be persisted.

State State State

取得 WorkflowInstance 的狀態。Gets the state of the WorkflowInstance.

TrackingEnabled TrackingEnabled TrackingEnabled

由工作流程執行階段呼叫,以判斷這個工作流程執行個體是否啟用追蹤。Called by the workflow runtime to determine whether tracking is enabled in this workflow instance.

方法

Abort() Abort() Abort()

中止 WorkflowInstanceAborts the WorkflowInstance.

Abort(Exception) Abort(Exception) Abort(Exception)

使用指定的例外狀況中止 WorkflowInstanceAborts the WorkflowInstance using the specified exception.

BeginFlushTrackingRecords(TimeSpan, AsyncCallback, Object) BeginFlushTrackingRecords(TimeSpan, AsyncCallback, Object) BeginFlushTrackingRecords(TimeSpan, AsyncCallback, Object)

由工作流程執行階段呼叫,會開始傳送暫止的追蹤記錄,以非同步的方式追蹤參與者。Called by the workflow runtime to begin sending pending tracking records to tracking participants asynchronously.

EndFlushTrackingRecords(IAsyncResult) EndFlushTrackingRecords(IAsyncResult) EndFlushTrackingRecords(IAsyncResult)

由工作流程執行階段呼叫以結束追蹤作業。Called by the workflow runtime to end the track operation.

Equals(Object) Equals(Object) Equals(Object)

傳回值,指出目前的 WorkflowInstance.WorkflowInstanceControl 是否和指定的物件相等。Returns a value that indicates whether the current WorkflowInstance.WorkflowInstanceControl is equal to the specified object.

FlushTrackingRecords(TimeSpan) FlushTrackingRecords(TimeSpan) FlushTrackingRecords(TimeSpan)

由工作流程執行階段呼叫,會傳送暫止的追蹤記錄至追蹤參與者。Called by the workflow runtime to send pending tracking records to tracking participants.

GetAbortReason() GetAbortReason() GetAbortReason()

傳回導致 WorkflowInstance 中止的例外狀況。Returns the exception that causes the WorkflowInstance to abort.

GetBookmarks() GetBookmarks() GetBookmarks()

傳回 WorkflowInstance 可用的書籤集合。Returns the collection of available bookmarks for the WorkflowInstance.

GetBookmarks(BookmarkScope) GetBookmarks(BookmarkScope) GetBookmarks(BookmarkScope)

傳回在指定的 WorkflowInstance 中建立之 BookmarkScope 可用的書籤集合。Returns the collection of available bookmarks for the WorkflowInstance created in the specified BookmarkScope.

GetCompletionState() GetCompletionState() GetCompletionState()

傳回 ActivityInstanceState 的最終 WorkflowInstanceReturns the final ActivityInstanceState of the WorkflowInstance.

GetCompletionState(Exception) GetCompletionState(Exception) GetCompletionState(Exception)

傳回 ActivityInstanceState 的最終 WorkflowInstance,包括終止例外狀況。Returns the final ActivityInstanceState of the WorkflowInstance, including termination exception.

GetCompletionState(IDictionary<String,Object>, Exception) GetCompletionState(IDictionary<String,Object>, Exception) GetCompletionState(IDictionary<String,Object>, Exception)

傳回 ActivityInstanceState 的最終 WorkflowInstance,包括工作流程輸出和終止例外狀況。Returns the final ActivityInstanceState of the WorkflowInstance, including workflow outputs and termination exception.

GetHashCode() GetHashCode() GetHashCode()

傳回這個 WorkflowInstance.WorkflowInstanceControl 的雜湊程式碼。Returns the hash code for this WorkflowInstance.WorkflowInstanceControl.

GetMappedVariables() GetMappedVariables() GetMappedVariables()

傳回目前範圍 (以 Mapped 指定) 的變數字典。Returns a dictionary of variables in the current scope that have been specified with Mapped.

PauseWhenPersistable() PauseWhenPersistable() PauseWhenPersistable()

要求工作流程執行階段在下一個可以保存的執行點暫停 WorkflowInstanceRequests that the workflow runtime pause the WorkflowInstance at the next point of execution where it is possible to persist. 請注意,此執行點的排程器佇列不可以是空的。Note that the scheduler queue may not be empty at this point.

PrepareForSerialization() PrepareForSerialization() PrepareForSerialization()

準備 WorkflowInstance 狀態以進行序列化。Prepares the WorkflowInstance state for serialization.

RequestPause() RequestPause() RequestPause()

要求該排程器停止。Requests that the scheduler stops.

Run() Run() Run()

指示 WorkflowInstance 開始執行。Instructs the WorkflowInstance to begin execution.

ScheduleBookmarkResumption(Bookmark, Object) ScheduleBookmarkResumption(Bookmark, Object) ScheduleBookmarkResumption(Bookmark, Object)

以指定的值排程書籤繼續。Schedules a bookmark resumption with the specified value.

ScheduleBookmarkResumption(Bookmark, Object, BookmarkScope) ScheduleBookmarkResumption(Bookmark, Object, BookmarkScope) ScheduleBookmarkResumption(Bookmark, Object, BookmarkScope)

排程從指定的 Bookmark 繼續 BookmarkScopeSchedules a Bookmark resumption from the specified BookmarkScope.

ScheduleCancel() ScheduleCancel() ScheduleCancel()

排程取消 WorkflowInstanceSchedules the cancellation of the WorkflowInstance.

Terminate(Exception) Terminate(Exception) Terminate(Exception)

使用指定的例外狀況,將 WorkflowInstance 轉換為終止 Faulted 狀態。Transitions the WorkflowInstance into the terminal Faulted state using the specified exception.

Track(WorkflowInstanceRecord) Track(WorkflowInstanceRecord) Track(WorkflowInstanceRecord)

由工作流程執行階段呼叫,會將指定的暫止記錄加入到暫止記錄清單中。Called by the workflow runtime to add the specified pending record to the list of pending records.

運算子

Equality(WorkflowInstance+WorkflowInstanceControl, WorkflowInstance+WorkflowInstanceControl) Equality(WorkflowInstance+WorkflowInstanceControl, WorkflowInstance+WorkflowInstanceControl) Equality(WorkflowInstance+WorkflowInstanceControl, WorkflowInstance+WorkflowInstanceControl)

傳回值,這個值表示兩個 WorkflowInstance.WorkflowInstanceControl 執行個體是否相等。Returns a value that indicates whether two WorkflowInstance.WorkflowInstanceControl instances are equal.

Inequality(WorkflowInstance+WorkflowInstanceControl, WorkflowInstance+WorkflowInstanceControl) Inequality(WorkflowInstance+WorkflowInstanceControl, WorkflowInstance+WorkflowInstanceControl) Inequality(WorkflowInstance+WorkflowInstanceControl, WorkflowInstance+WorkflowInstanceControl)

傳回值,這個值表示兩個 WorkflowInstance.WorkflowInstanceControl 執行個體是否不相等。Returns a value that indicates whether two WorkflowInstance.WorkflowInstanceControl instances are not equal.

適用於