< Summary

Class:Microsoft.Azure.ServiceBus.ExceptionReceivedContext
Assembly:Microsoft.Azure.ServiceBus
File(s):C:\Git\azure-sdk-for-net\sdk\servicebus\Microsoft.Azure.ServiceBus\src\ExceptionReceivedContext.cs
Covered lines:0
Uncovered lines:10
Coverable lines:10
Total lines:39
Line coverage:0% (0 of 10)
Covered branches:0
Total branches:8
Branch coverage:0% (0 of 8)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_Action()-0%100%
get_Endpoint()-0%100%
get_EntityPath()-0%100%
get_ClientId()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\servicebus\Microsoft.Azure.ServiceBus\src\ExceptionReceivedContext.cs

#LineLine coverage
 1// Copyright (c) Microsoft. All rights reserved.
 2// Licensed under the MIT license. See LICENSE file in the project root for full license information.
 3
 4using Microsoft.Azure.ServiceBus.Core;
 5
 6namespace Microsoft.Azure.ServiceBus
 7{
 8    using System;
 9
 10    /// <summary>Context provided for <see cref="ExceptionReceivedEventArgs"/> exception raised by the client.</summary>
 11    public class ExceptionReceivedContext
 12    {
 13        /// <summary>Initializes a new instance of the <see cref="ExceptionReceivedContext" /> class.</summary>
 14        /// <param name="action">The action associated with the exception.</param>
 15        /// <param name="endpoint">The endpoint associated with the exception.</param>
 16        /// <param name="entityPath">The entity path associated with the exception.</param>
 17        /// <param name="clientId">The Client Id can be used to associate with the <see cref="QueueClient"/>, <see cref=
 018        public ExceptionReceivedContext(string action, string endpoint, string entityPath, string clientId)
 19        {
 020            Action = action ?? throw new ArgumentNullException(nameof(action));
 021            Endpoint = endpoint ?? throw new ArgumentNullException(nameof(endpoint));
 022            EntityPath = entityPath ?? throw new ArgumentNullException(nameof(entityPath));
 023            ClientId = clientId ?? throw new ArgumentNullException(nameof(clientId));
 024        }
 25
 26        /// <summary>Gets the action associated with the event.</summary>
 27        /// <value>The action associated with the event.</value>
 028        public string Action { get; }
 29
 30        /// <summary>The namespace name used when this exception occurred.</summary>
 031        public string Endpoint { get; }
 32
 33        /// <summary>The entity path used when this exception occurred.</summary>
 034        public string EntityPath { get; }
 35
 36        /// <summary>The Client Id associated with the sender, receiver or session when this exception occurred.</summar
 037        public string ClientId { get; }
 38    }
 39}