SendActivity.ChannelToken Propriedade

Definição

ChannelToken usado pela SendActivity para associar-se a um canal do cliente.ChannelToken used by the SendActivity to associate itself with a client channel.

public:
 property System::Workflow::Activities::ChannelToken ^ ChannelToken { System::Workflow::Activities::ChannelToken ^ get(); void set(System::Workflow::Activities::ChannelToken ^ value); };
public System.Workflow.Activities.ChannelToken ChannelToken { get; set; }
member this.ChannelToken : System.Workflow.Activities.ChannelToken with get, set
Public Property ChannelToken As ChannelToken

Valor da propriedade

ChannelToken

Uma ChannelToken definição de um canal de cliente que o SendActivity usa para se comunicar com um serviço.A ChannelToken defining a client channel that a SendActivity uses to communicate with a service.

Exemplos

O exemplo a seguir mostra como acessar a ChannelToken propriedade.The following example shows how to access the ChannelToken property. Este exemplo foi adaptado do CalculatorClient exemplo de SDK.This example was adapted from the CalculatorClient SDK sample.

ChannelToken channelToken1 = new ChannelToken();
SendActivity requestQuoteFromShipper3 = new SendActivity();
channelToken1.EndpointName = "Shipper3Endpoint";
channelToken1.Name = "Shipper3Endpoint";
channelToken1.OwnerActivityName = "GetShippingQuotes";
requestQuoteFromShipper3.ChannelToken = channelToken1;

Comentários

Um token de canal especifica o nome do canal, o escopo do canal e o nome de configuração do ponto de extremidade a ser usado no estabelecimento do canal.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. O nome do ponto de extremidade no arquivo de configuração tem o endereço, a associação e as informações de contrato para um serviço com o qual a SendActivity atividade se comunica.The endpoint name in the configuration file has the address, binding, and contract information for a service that the SendActivity activity communicates with.

O token de canal também especifica um nome de canal exclusivo e um nome de atividade de proprietário para o token.The channel token also specifies a unique channel name and an owner activity name for the token. Um token de canal pode ser compartilhado entre várias atividades de envio que desejam usar o mesmo ponto de extremidade para se comunicar com um serviço.A channel token can be shared between multiple send activities that want to use the same endpoint to communicate with a service.

Aplica-se a