| | 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 | | /// Represents the filter actions which are allowed for the transformation |
| | 10 | | /// of a message that have been matched by a filter expression. |
| | 11 | | /// </summary> |
| | 12 | | /// <remarks> |
| | 13 | | /// Filter actions allow for the transformation of a message that have been matched by a filter expression. |
| | 14 | | /// The typical use case for filter actions is to append or update the properties that are attached to a message, |
| | 15 | | /// for example assigning a group ID based on the correlation ID of a message. |
| | 16 | | /// </remarks> |
| | 17 | | /// <seealso cref="SqlRuleAction"/> |
| | 18 | | public abstract class RuleAction : IEquatable<RuleAction> |
| | 19 | | { |
| 30 | 20 | | internal RuleAction() |
| | 21 | | { |
| | 22 | | // This is intentionally left blank. This constructor exists |
| | 23 | | // only to prevent external assemblies inheriting from it. |
| 30 | 24 | | } |
| | 25 | |
|
| | 26 | | internal abstract RuleAction Clone(); |
| | 27 | |
|
| | 28 | | /// <inheritdoc/> |
| | 29 | | public abstract bool Equals(RuleAction other); |
| | 30 | |
|
| | 31 | | /// <inheritdoc/> |
| | 32 | | public abstract override bool Equals(object obj); |
| | 33 | |
|
| | 34 | | /// <inheritdoc/> |
| | 35 | | public override int GetHashCode() => |
| 0 | 36 | | base.GetHashCode(); |
| | 37 | | } |
| | 38 | | } |