Edit

Kongsi melalui


CorrelationCallbackMessageProperty.FinalizeCorrelation Method

Definition

Called by a correlation protocol when all of the correlation information is available to construct the correlation.

public:
 System::ServiceModel::Channels::Message ^ FinalizeCorrelation(System::ServiceModel::Channels::Message ^ message, TimeSpan timeout);
public System.ServiceModel.Channels.Message FinalizeCorrelation (System.ServiceModel.Channels.Message message, TimeSpan timeout);
member this.FinalizeCorrelation : System.ServiceModel.Channels.Message * TimeSpan -> System.ServiceModel.Channels.Message
Public Function FinalizeCorrelation (message As Message, timeout As TimeSpan) As Message

Parameters

message
Message

The message to be correlated.

timeout
TimeSpan

The interval in which the correlation calculation must be completed or else a TimeoutException is thrown.

Returns

The correlated message.

Remarks

This method calls OnFinalizeCorrelation to construct the correlation. Applications must provide an implementation of OnFinalizeCorrelation, which performs the correlation calculation of the specified message.

Applies to