CorrelationFilter Class
Represents the correlation filter expression.
System.Object
Microsoft.ServiceBus.Messaging.Filter
Microsoft.ServiceBus.Messaging.CorrelationFilter
Microsoft.ServiceBus.Messaging.Filter
Microsoft.ServiceBus.Messaging.CorrelationFilter
Namespace: Microsoft.ServiceBus.Messaging
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
The CorrelationFilter type exposes the following members.
| Name | Description | |
|---|---|---|
|
CorrelationFilter | Initializes a new instance of the CorrelationFilter class with the specified correlation identifier. |
| Name | Description | |
|---|---|---|
|
CorrelationId | Gets the identifier of the correlation. |
|
RequiresPreprocessing | Gets a value indicating whether the CorrelationFilter expression requires preprocessing. (Overrides Filter.RequiresPreprocessing.) |
| Name | Description | |
|---|---|---|
|
Equals | (Inherited from Object.) |
|
Finalize | (Inherited from Object.) |
|
GetHashCode | (Inherited from Object.) |
|
GetType | (Inherited from Object.) |
|
Match | Indicates whether a message matches against the current SQL expression. (Overrides Filter.Match(BrokeredMessage).) |
|
MemberwiseClone | (Inherited from Object.) |
|
Preprocess | Gets the preprocessed filter expression. (Overrides Filter.Preprocess().) |
|
ToString | (Inherited from Object.) |
|
Validate | Validates the CorrelationFilter object. (Overrides Filter.Validate().) |
| Name | Description | |
|---|---|---|
|
IExtensibleDataObject.ExtensionData | Gets or sets the object that contains extra data. (Inherited from Filter.) |
The CorrelationFilter provides an efficient shortcut for declarations of filters that deal only with correlation equality. In this case the cost of the lexicographical analysis of the expression can be avoided. Not only will correlation filters be optimized at declaration time, but they will also be optimized at runtime. Correlation filter matching can be reduced to a hashtable lookup, which aggregates the complexity of the set of defined correlation filters to 0(1).