| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | |
|
| | 6 | | namespace Azure.Messaging.ServiceBus.Management |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// Describes a filter expression that is evaluated against a Message. |
| | 10 | | /// </summary> |
| | 11 | | /// <remarks> |
| | 12 | | /// Filter is an abstract class with the following concrete implementations: |
| | 13 | | /// <list type="bullet"> |
| | 14 | | /// <item><b>SqlRuleFilter</b> that represents a filter using SQL syntax. </item> |
| | 15 | | /// <item><b>CorrelationRuleFilter</b> that provides an optimization for correlation equality expressions.</item> |
| | 16 | | /// </list> |
| | 17 | | /// </remarks> |
| | 18 | | /// <seealso cref="SqlRuleFilter"/> |
| | 19 | | /// <seealso cref="TrueRuleFilter"/> |
| | 20 | | /// <seealso cref="CorrelationRuleFilter "/> |
| | 21 | | /// <seealso cref="FalseRuleFilter"/> |
| | 22 | | public abstract class RuleFilter : IEquatable<RuleFilter> |
| | 23 | | { |
| 100 | 24 | | internal RuleFilter() |
| | 25 | | { |
| | 26 | | // This is intentionally left blank. This constructor exists |
| | 27 | | // only to prevent external assemblies inheriting from it. |
| 100 | 28 | | } |
| | 29 | |
|
| | 30 | | internal abstract RuleFilter Clone(); |
| | 31 | |
|
| | 32 | | /// <inheritdoc/> |
| | 33 | | public abstract bool Equals(RuleFilter other); |
| | 34 | |
|
| | 35 | | /// <inheritdoc/> |
| | 36 | | public abstract override bool Equals(object obj); |
| | 37 | |
|
| | 38 | | /// <inheritdoc/> |
| | 39 | | public override int GetHashCode() => |
| 0 | 40 | | base.GetHashCode(); |
| | 41 | | } |
| | 42 | | } |