CorrelationCallbackMessageProperty 類別

定義

提供延後相互關聯索引鍵計算的抽象基底類別,直到所有的相互關聯資料可用為止。Provides an abstract base class for deferring correlation key calculation until all of the correlation data is available.

public ref class CorrelationCallbackMessageProperty abstract : System::ServiceModel::Channels::IMessageProperty
public abstract class CorrelationCallbackMessageProperty : System.ServiceModel.Channels.IMessageProperty
type CorrelationCallbackMessageProperty = class
    interface IMessageProperty
Public MustInherit Class CorrelationCallbackMessageProperty
Implements IMessageProperty
繼承
CorrelationCallbackMessageProperty
實作

備註

這通常會用於在連線上傳送訊息前,先讓其他通道提供相互關聯資料。This is typically used to allow other channels to provide correlation data before a message is sent on the wire.

建構函式

CorrelationCallbackMessageProperty(CorrelationCallbackMessageProperty)

由衍生類別呼叫以初始化衍生類別的新執行個體,此衍生類別使用來自其他 CorrelationCallbackMessageProperty 衍生類別執行個體所需的相互關聯資料。Called by derived classes to initialize a new instance of the derived class using the required correlation data from another CorrelationCallbackMessageProperty derived class instance.

CorrelationCallbackMessageProperty(ICollection<String>)

由衍生類別呼叫以初始化衍生類別的新執行個體,此衍生類別使用計算相互關聯所需之相互關聯資料的指定集合。Called by derived classes to initialize a new instance of the derived class using the specified collection of correlation data that is required to calculate the correlation.

屬性

IsFullyDefined

判斷 CorrelationCallbackMessageProperty 是否有所有必要的相互關聯資料。Determines whether the CorrelationCallbackMessageProperty has all of the required correlation data.

Name

取得此訊息屬性的名稱:"CorrelationCallbackMessageProperty"。Gets the name of this message property: "CorrelationCallbackMessageProperty".

NeededData

取得套用相互關聯前所需的相互關聯資料清單。Gets a list of correlation data that is required before correlation can be applied.

方法

AddData(String, Func<String>)

加入所需的相互關聯資料至屬性。Adds required correlation data to the property.

BeginFinalizeCorrelation(Message, TimeSpan, AsyncCallback, Object)

當所有相互關聯資訊可用於非同步建構相互關聯時,由相互關聯通訊協定呼叫。Called by a correlation protocol when all of the correlation information is available to asynchronously construct the correlation.

CreateCopy()

在衍生類別中覆寫時,會初始化並傳回衍生訊息屬性執行個體的複本。When overridden in a derived class, initializes and returns a copy of the derived message property instance.

EndFinalizeCorrelation(IAsyncResult)

傳回相互關聯的非同步準備訊息。Returns the message that was prepared asynchronously for correlation.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
FinalizeCorrelation(Message, TimeSpan)

當所有相互關聯資訊可用於建構相互關聯時,由相互關聯通訊協定呼叫。Called by a correlation protocol when all of the correlation information is available to construct the correlation.

GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
OnBeginFinalizeCorrelation(Message, TimeSpan, AsyncCallback, Object)

在衍生類別中覆寫時,會非同步執行指定訊息的相互關聯計算。When overridden in a derived class, asynchronously performs the correlation calculation for the specified message.

OnEndFinalizeCorrelation(IAsyncResult)

在衍生類別中覆寫時,會傳回相互關聯的非同步準備訊息。When overridden in a derived class, returns the message that was prepared asynchronously for correlation.

OnFinalizeCorrelation(Message, TimeSpan)

在衍生類別中覆寫時,會執行指定訊息的相互關聯計算。When overridden in a derived class, performs the correlation calculation for the specified message.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
TryGet(Message, CorrelationCallbackMessageProperty)

嘗試從指定訊息的 Properties 取得 CorrelationCallbackMessagePropertyAttempts to get a CorrelationCallbackMessageProperty from the specified message's Properties.

TryGet(MessageProperties, CorrelationCallbackMessageProperty)

嘗試從指定訊息的屬性取得 CorrelationCallbackMessagePropertyAttempts to get a CorrelationCallbackMessageProperty from the specified message properties.

適用於