Edit

Bagikan melalui


TrackingChannel Class

Definition

Caution

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

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
Inheritance
TrackingChannel
Attributes

Remarks

Note

This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

If a TrackingService is present, the runtime tracking infrastructure calls GetTrackingChannel to get a tracking channel for a workflow instance. 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. For example, the SqlTrackingService writes tracking information to a SQL database.

To create a tracking channel for your tracking service, derive a class from the TrackingChannel base class. 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. The workflow runtime engine requests a tracking channel from each tracking service that has provided a TrackingProfile for a workflow instance.

Constructors

TrackingChannel()

When implemented in a derived class, initializes a new instance of the TrackingChannel class.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from 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()

Creates a shallow copy of the current Object.

(Inherited from Object)
Send(TrackingRecord)

When implemented in a derived class, sends a TrackingRecord on the TrackingChannel.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to