QueryCorrelationInitializer QueryCorrelationInitializer QueryCorrelationInitializer QueryCorrelationInitializer Class

Definition

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
type QueryCorrelationInitializer = class
    inherit CorrelationInitializer
Public NotInheritable Class QueryCorrelationInitializer
Inherits CorrelationInitializer
Inheritance
QueryCorrelationInitializerQueryCorrelationInitializerQueryCorrelationInitializerQueryCorrelationInitializer
Attributes

Examples

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)))
}

Constructors

QueryCorrelationInitializer() QueryCorrelationInitializer() QueryCorrelationInitializer() QueryCorrelationInitializer()

Initializes a new instance of the QueryCorrelationInitializer class.

Properties

CorrelationHandle CorrelationHandle CorrelationHandle CorrelationHandle

Gets or sets the CorrelationHandle argument for the correlation initializer.

(Inherited from CorrelationInitializer)
MessageQuerySet MessageQuerySet MessageQuerySet MessageQuerySet

Gets or sets the MessageQuerySet that is used to perform the CorrelationKey calculation.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to