QueryCorrelationInitializer Classe
Definição
Inicializa o CorrelationHandle associado com base nos resultados de MessageQuerySet quando a mensagem é enviada ou recebida.Initializes the associated CorrelationHandle based on the results of the MessageQuerySet when the message is sent or received.
public ref class QueryCorrelationInitializer sealed : System::ServiceModel::Activities::CorrelationInitializer
[System.Windows.Markup.ContentProperty("MessageQuerySet")]
public sealed class QueryCorrelationInitializer : System.ServiceModel.Activities.CorrelationInitializer
[<System.Windows.Markup.ContentProperty("MessageQuerySet")>]
type QueryCorrelationInitializer = class
inherit CorrelationInitializer
Public NotInheritable Class QueryCorrelationInitializer
Inherits CorrelationInitializer
- Herança
- Atributos
Exemplos
O exemplo a seguir mostra como usar a QueryCorrelationInitializer classe para definir a inicialização de correlação para uma SendReply atividade.The following example shows how to use the QueryCorrelationInitializer class to set the correlation initialize for a SendReply activity.
new SendReply
{
DisplayName = "Send Adjusted Cost",
Request = prescriptionRequest,
// Initialize the orderHandle using the MessageQuerySet to correlate with the final GetAdjustedCost request
CorrelationInitializers =
{
new QueryCorrelationInitializer
{
CorrelationHandle = orderHandle,
MessageQuerySet = GetOrderQuerySet
}
},
Content = SendContent.Create(new InArgument<Order>((e) => order.Get(e)))
}
Construtores
| QueryCorrelationInitializer() |
Inicializa uma nova instância da classe QueryCorrelationInitializer.Initializes a new instance of the QueryCorrelationInitializer class. |
Propriedades
| CorrelationHandle |
Obtém ou define o argumento CorrelationHandle para o inicializador de correlação.Gets or sets the CorrelationHandle argument for the correlation initializer. (Herdado de CorrelationInitializer) |
| MessageQuerySet |
Obtém ou define o MessageQuerySet que é usado para realizar o cálculo de CorrelationKey.Gets or sets the MessageQuerySet that is used to perform the CorrelationKey calculation. |
Métodos
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |