Szerkesztés

Megosztás a következőn keresztül:


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
[<System.Windows.Markup.ContentProperty("MessageQuerySet")>]
type QueryCorrelationInitializer = class
    inherit CorrelationInitializer
Public NotInheritable Class QueryCorrelationInitializer
Inherits CorrelationInitializer
Inheritance
QueryCorrelationInitializer
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()

Initializes a new instance of the QueryCorrelationInitializer class.

Properties

CorrelationHandle

Gets or sets the CorrelationHandle argument for the correlation initializer.

(Inherited from CorrelationInitializer)
MessageQuerySet

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

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)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to