CorrelationQuery 類別

定義

代表 Where 子句,以及可識別訊息的唯一特性,以便將訊息路由至正確執行個體的 Select 子句。Represents a Where clause and a Select clause that identify the unique characteristics of a message so that it can be routed to the correct instance.

public ref class CorrelationQuery
public class CorrelationQuery
type CorrelationQuery = class
Public Class CorrelationQuery
繼承
CorrelationQuery

備註

CorrelationQuery 是一組查詢,會在傳入或傳出的訊息上執行,以產生一組執行個體金鑰。A CorrelationQuery is a set of queries that are run on an incoming or outgoing message to generate a set of instance keys. InstanceKey 代表從查詢選取的資料與某個特定服務執行個體之間的關聯性。An InstanceKey represents an association between the data selected from the query and a particular service instance.

Where 子句可讓使用者篩選此 CorrelationQuery 執行所在的訊息組。The Where clause allows the user to filter the set of messages that this CorrelationQuery runs on. Select 子句代表根據某個傳入訊息應該分派到哪個執行個體,會用來以唯一方式識別服務執行個體的查詢組。The Select clause represents the query set used to uniquely identify the service instance for which an incoming message should be dispatched. SelectAdditional 子句是一組查詢集合,代表必須建立的新執行個體金鑰,以便將該資料與服務執行個體產生關聯。The SelectAdditional clauses are a set of query sets that represent new instance keys that must be created to associate that data with the service instance.

建構函式

CorrelationQuery()

初始化 CorrelationQuery 類別的新執行個體。Initializes a new instance of the CorrelationQuery class.

屬性

Select

取得或設定包含訊息中項目的 MessageQuerySet,這些項目會撰寫以唯一方式識別訊息的執行個體金鑰。Gets or sets the MessageQuerySet that contains the elements in the message that compose the instance key that uniquely identifies the message.

SelectAdditional

取得子句的集合,各子句會定義訊息中構成相關聯金鑰的項目組。Gets a collection of clauses, each of which defines the set of elements in the message that make up an associated key.

Where

取得或設定 MessageFilter,定義此查詢適用的訊息組。Gets or sets the MessageFilter that defines the set of messages for which this query applies.

方法

Equals(Object)

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

GetHashCode()

傳回目前 CorrelationQuery 的雜湊程式碼。Returns the hash code for the current CorrelationQuery.

GetType()

Gets the Type of the current instance.Gets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

Creates a shallow copy of the current Object.Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

Returns a string that represents the current object.Returns a string that represents the current object.

(繼承來源 Object)

適用於