WorkflowPersistenceService.UnloadOnIdle(Activity) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether a workflow should be unloaded when idle.
protected public:
abstract bool UnloadOnIdle(System::Workflow::ComponentModel::Activity ^ activity);
protected internal abstract bool UnloadOnIdle (System.Workflow.ComponentModel.Activity activity);
abstract member UnloadOnIdle : System.Workflow.ComponentModel.Activity -> bool
Protected Friend MustOverride Function UnloadOnIdle (activity As Activity) As Boolean
Parameters
Returns
If true
, the workflow runtime engine unloads the specified workflow when it becomes idle.
Examples
The following example demonstrates an implementation of the UnloadOnIdle
method. This example is from the Custom Persistence Service sample, from the FilePersistenceService.cs file. For more information, see Custom Persistence Service Sample.
protected override bool UnloadOnIdle(Activity activity)
{
return unloadOnIdle;
}
' Returns status of unloadOnIdle flag
Protected Overrides Function UnloadOnIdle(ByVal rootActivity As System.Workflow.ComponentModel.Activity) As Boolean
Return unloadOnIdleValue
End Function
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기