SqlTrackingService 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
表示使用 SQL 数据库存储跟踪信息的跟踪服务。
public ref class SqlTrackingService sealed : System::Workflow::Runtime::Tracking::TrackingService, System::Workflow::Runtime::Tracking::IProfileNotification
public sealed class SqlTrackingService : System.Workflow.Runtime.Tracking.TrackingService, System.Workflow.Runtime.Tracking.IProfileNotification
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public sealed class SqlTrackingService : System.Workflow.Runtime.Tracking.TrackingService, System.Workflow.Runtime.Tracking.IProfileNotification
type SqlTrackingService = class
inherit TrackingService
interface IProfileNotification
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type SqlTrackingService = class
inherit TrackingService
interface IProfileNotification
Public NotInheritable Class SqlTrackingService
Inherits TrackingService
Implements IProfileNotification
- 继承
- 属性
- 实现
注解
注释
此材料讨论已过时的类型和命名空间。 有关详细信息,请参阅 Windows Workflow Foundation 4.50 中的
该 SqlTrackingService 类表示功能齐全的跟踪服务。 可以使用此服务现成收集并存储跟踪信息,以及存储跟踪配置文件,并在工作流运行时引擎请求时提供它们。 SQL 跟踪服务将运行时跟踪基础结构发送到 SQL 数据库的跟踪数据写入其中。
在许多情况下, SqlTrackingService 必须保持数据库与工作流运行时引擎状态之间的一致性。 因此,该SqlTrackingChannel类利用IPendingWork接口参与工作流事务批处理功能。WorkflowCommitWorkBatchService 可以设置 IsTransactional 或将相应的参数传递给构造函数,以配置 SqlTrackingService 参与批处理并将表示挂起的更改的对象添加到 WorkBatchSQL 数据库。
它还 SqlTrackingService 在其数据库中维护跟踪配置文件。 必须向工作流运行时引擎提供对它正在使用的任何跟踪配置文件的更改。 该 SqlTrackingService 接口实现 IProfileNotification 并定期检查其数据库中的跟踪配置文件,以便通知工作流运行时引擎对其 TrackingProfile 数据库中存储的更改。 你可以设置 ProfileChangeCheckInterval 或将适当的参数传递给构造函数,以便设置检查其跟踪配置文件的间隔 SqlTrackingService ,以通知跟踪运行时任何配置文件更改。
注释
同时使用 SqlTrackingService 工作流应用程序中和 SqlWorkflowPersistenceService 工作流应用程序中时,建议使用单个数据库进行持久性和跟踪。
构造函数
| 名称 | 说明 |
|---|---|
| SqlTrackingService(NameValueCollection) |
已过时.
使用指定的NameValueCollection值初始化类的新实例SqlTrackingService。 |
| SqlTrackingService(String) |
已过时.
使用指定的数据库连接字符串初始化 SqlTrackingService 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| ConnectionString |
已过时.
获取跟踪数据库的连接字符串。 |
| EnableRetries |
已过时.
获取或设置一个值,该值指定在执行数据库操作时是否 SqlTrackingService 重试。 |
| IsTransactional |
已过时.
获取或设置一个值,该值指示是否 SqlTrackingService 参与工作流事务。 |
| PartitionOnCompletion |
已过时.
获取或设置一个值,该值指定在工作流实例完成后是否应将工作流实例的跟踪数据移动到数据库中当前活动分区。 |
| ProfileChangeCheckInterval |
已过时.
获取或设置一个值,该值指定应检查数据库的一个或多个跟踪配置文件的更改的间隔。 |
| Runtime |
已过时.
获取 WorkflowRuntime 此服务。 (继承自 WorkflowRuntimeService) |
| State |
已过时.
获取 . 的状态 WorkflowRuntimeService。 (继承自 WorkflowRuntimeService) |
| UseDefaultProfile |
已过时.
获取或设置一个值,该值指定是否应将默认值 TrackingProfile 用于没有跟踪配置文件的工作流类型。 |
方法
| 名称 | 说明 |
|---|---|
| Equals(Object) |
已过时.
确定指定的对象是否等于当前对象。 (继承自 Object) |
| GetHashCode() |
已过时.
用作默认哈希函数。 (继承自 Object) |
| GetProfile(Guid) |
已过时.
必须在派生类中重写,并且实现时,返回指定工作流实例的跟踪配置文件。 (继承自 TrackingService) |
| GetProfile(Type, Version) |
已过时.
必须在派生类中重写,并且实现时,为指定的工作流 Type返回按版本限定的跟踪配置文件。 (继承自 TrackingService) |
| GetTrackingChannel(TrackingParameters) |
已过时.
必须在派生类中重写,实现时,返回运行时跟踪基础结构用于将跟踪记录发送到跟踪服务的通道。 (继承自 TrackingService) |
| GetType() |
已过时.
获取当前实例的 Type。 (继承自 Object) |
| MemberwiseClone() |
已过时.
创建当前 Object的浅表副本。 (继承自 Object) |
| OnStarted() |
已过时.
在派生类中重写时,表示在工作流运行时引擎引发 Started 事件时将调用的方法。 (继承自 WorkflowRuntimeService) |
| OnStopped() |
已过时.
在派生类中重写时,表示在工作流运行时引擎引发 Stopped 事件时将调用的方法。 (继承自 WorkflowRuntimeService) |
| RaiseServicesExceptionNotHandledEvent(Exception, Guid) |
已过时.
引发 ServicesExceptionNotHandled 事件。 (继承自 WorkflowRuntimeService) |
| Start() |
已过时.
在派生类中重写时,启动服务并将更改 State 为 Starting。 (继承自 WorkflowRuntimeService) |
| Stop() |
已过时.
在派生类中重写时,停止服务并将更改 State 为 Stopping。 (继承自 WorkflowRuntimeService) |
| ToString() |
已过时.
返回一个表示当前对象的字符串。 (继承自 Object) |
| TryGetProfile(Type, TrackingProfile) |
已过时.
必须在派生类中重写,并且实现时,如果指定工作流类型可用,则检索指定的工作流类型的跟踪配置文件。 (继承自 TrackingService) |
| TryReloadProfile(Type, Guid, TrackingProfile) |
已过时.
必须在派生类中重写,并且实现时,如果跟踪配置文件自上次加载以来发生了更改,则检索指定工作流实例的新跟踪配置文件。 (继承自 TrackingService) |
活动
| 名称 | 说明 |
|---|---|
| ProfileRemoved |
已过时.
检测到已删除 a TrackingProfile 时SqlTrackingService发生。 |
| ProfileUpdated |
已过时.
检测到 SqlTrackingService 已更改时 TrackingProfile 发生。 |