TrackingChannel 类
定义
注意
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
表示跟踪通道的 abstract 基类。The abstract base class that represents a tracking channel.
public ref class TrackingChannel abstract
public abstract class TrackingChannel
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public abstract class TrackingChannel
type TrackingChannel = class
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type TrackingChannel = class
Public MustInherit Class TrackingChannel
- 继承
-
TrackingChannel
- 属性
注解
备注
本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型。For more information, see Deprecated Types in Windows Workflow Foundation 4.5.
如果 TrackingService 存在,运行时跟踪基础结构将调用 GetTrackingChannel 来获取工作流实例的跟踪通道。If a TrackingService is present, the runtime tracking infrastructure calls GetTrackingChannel to get a tracking channel for a workflow instance. 当跟踪基础结构与 TrackingProfile(与工作流实例关联)中的跟踪点匹配时,运行时跟踪基础结构使用此跟踪通道将与工作流实例关联的跟踪记录发送回主机应用程序。The runtime tracking infrastructure uses this tracking channel to send tracking records associated with the workflow instance back to the host application whenever the tracking infrastructure matches a track point in the TrackingProfile associated with the workflow instance. 应用程序可以采用您选择的任何方式处理此跟踪信息。Your application can treat this tracking information in any way you choose. 例如,SqlTrackingService 将跟踪信息写入 SQL 数据库。For example, the SqlTrackingService writes tracking information to a SQL database.
若要为跟踪服务创建跟踪通道,请从 TrackingChannel 基类中派生一个类。To create a tracking channel for your tracking service, derive a class from the TrackingChannel base class. 您可以使用运行时跟踪基础结构在其调用中传递到 TrackingParameters 实现的 GetTrackingChannel 对象将跟踪通道的每个实例与特定的工作流实例关联。You can use the TrackingParameters object passed by the runtime tracking infrastructure in its call to your implementation of GetTrackingChannel to associate each instance of your tracking channel with a specific workflow instance. 工作流运行时引擎从已为工作流实例提供了 TrackingProfile 的每个跟踪服务中请求跟踪通道。The workflow runtime engine requests a tracking channel from each tracking service that has provided a TrackingProfile for a workflow instance.
构造函数
| TrackingChannel() |
在派生类中实现时,初始化 TrackingChannel 类的新实例。When implemented in a derived class, initializes a new instance of the TrackingChannel class. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| InstanceCompletedOrTerminated() |
在派生类中实现时,将在跟踪通道上通知数据的接收者:与跟踪通道关联的工作流实例已完成或终止。When implemented in a derived class, notifies a receiver of data on the tracking channel that the workflow instance associated with the tracking channel has either completed or terminated. |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| Send(TrackingRecord) |
在派生类中实现时,在 TrackingRecord 上发送 TrackingChannel。When implemented in a derived class, sends a TrackingRecord on the TrackingChannel. |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |