< Summary

Class:Azure.Messaging.ServiceBus.Management.RuleFilter
Assembly:Azure.Messaging.ServiceBus
File(s):C:\Git\azure-sdk-for-net\sdk\servicebus\Azure.Messaging.ServiceBus\src\Management\Rules\RuleFilter.cs
Covered lines:2
Uncovered lines:1
Coverable lines:3
Total lines:42
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\RuleFilter.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    /// 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    {
 10024        internal RuleFilter()
 25        {
 26            // This is intentionally left blank. This constructor exists
 27            // only to prevent external assemblies inheriting from it.
 10028        }
 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() =>
 040            base.GetHashCode();
 41    }
 42}

Methods/Properties

.ctor()
GetHashCode()