< Summary

Class:Azure.Messaging.ServiceBus.Management.RuleAction
Assembly:Azure.Messaging.ServiceBus
File(s):C:\Git\azure-sdk-for-net\sdk\servicebus\Azure.Messaging.ServiceBus\src\Management\Rules\RuleAction.cs
Covered lines:2
Uncovered lines:1
Coverable lines:3
Total lines:38
Line coverage:66.6% (2 of 3)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
GetHashCode()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\servicebus\Azure.Messaging.ServiceBus\src\Management\Rules\RuleAction.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5
 6namespace 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    {
 3020        internal RuleAction()
 21        {
 22            // This is intentionally left blank. This constructor exists
 23            // only to prevent external assemblies inheriting from it.
 3024        }
 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() =>
 036            base.GetHashCode();
 37    }
 38}

Methods/Properties

.ctor()
GetHashCode()