Export (0) Print
Expand All

SendActivity.ChannelToken Property

ChannelToken used by the SendActivity to associate itself with a client channel.

Namespace:  System.Workflow.Activities
Assembly:  System.WorkflowServices (in System.WorkflowServices.dll)

public ChannelToken ChannelToken { get; set; }

Property Value

Type: System.Workflow.Activities.ChannelToken
A ChannelToken defining a client channel that a SendActivity uses to communicate with a service.

A channel token specifies the name of the channel, the scope of the channel, and the endpoint configuration name to be used in establishing the channel. The endpoint name in the configuration file has the address, binding, and contract information for a service that the SendActivity activity communicates with.

The channel token also specifies a unique channel name and an owner activity name for the token. A channel token can be shared between multiple send activities that want to use the same endpoint to communicate with a service.

The following example shows how to access the ChannelToken property. This example was adapted from the CalculatorClient SDK sample.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5

Community Additions

ADD
Show:
© 2014 Microsoft