SqlWorkflowPersistenceService.EnableRetries 属性

定义

获取或设置一个值,该值指定 SqlWorkflowPersistenceService 是否重试提交工作批处理。

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

属性值

true 如果服务应重试提交工作批处理,则为否则,为 false. 默认值为 false

注解

无法对以下工作项进行批处理,并且必须通过 EnableRetries 属性处理任何事务重试:

  • 轮询过期的数据库计时器。

  • 加载工作流实例状态。

  • 在工作流运行时引擎启动时重新加载工作流实例。

  • 调用 GetAllWorkflows

除了以编程方式设置外,还可以通过配置文件启用此功能。 有关如何通过配置文件设置此属性的详细信息,请参阅 工作流配置文件

有关重试工作批处理事务的常规信息,请参阅 工作流中的批处理状态信息

适用于