WorkflowIdleBehavior.TimeToUnload 属性

定义

获取或设置一个值,该值指定工作流进入空闲状态到变为卸载状态之间的 TimeSpanGets or sets a value that specifies the TimeSpan that occurs between the time workflow becomes idle and is unloaded.

public:
 property TimeSpan TimeToUnload { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan TimeToUnload { get; set; }
member this.TimeToUnload : TimeSpan with get, set
Public Property TimeToUnload As TimeSpan

属性值

TimeSpan

用于确定何时卸载工作流的时间跨度。The time span used to determine when a workflow is unloaded.

注解

默认值为 1 分钟。The default value is 1 minute. 卸载一个工作流意味着该工作流已持久保存。Unloading a workflow implies that it is also persisted. 如果 TimeToUnload 设置为零,则工作流实例会被永久保留并在工作流进入空闲状态后立即将其卸载。If TimeToUnload is set to zero the workflow instance is persisted and unloaded immediately after the workflow becomes idle. TimeToUnload 设置为 MaxValue 可以有效禁用卸载操作。Setting TimeToUnload to MaxValue effectively disables the unload operation. 处于空闲状态的工作流实例永远不会被卸载。Idle workflow instances are never unloaded.

适用于