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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.