< Summary

Class:Microsoft.Azure.EventHubs.Processor.ExceptionReceivedEventArgs
Assembly:Microsoft.Azure.EventHubs.Processor
File(s):C:\Git\azure-sdk-for-net\sdk\eventhub\Microsoft.Azure.EventHubs.Processor\src\ExceptionReceivedEventArgs.cs
Covered lines:0
Uncovered lines:10
Coverable lines:10
Total lines:44
Line coverage:0% (0 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%100%
get_Hostname()-0%100%
get_PartitionId()-0%100%
get_Exception()-0%100%
get_Action()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventhub\Microsoft.Azure.EventHubs.Processor\src\ExceptionReceivedEventArgs.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
 4namespace Microsoft.Azure.EventHubs.Processor
 5{
 6    using System;
 7
 8    /// <summary>
 9    /// Provides data for the <see cref="EventProcessorOptions.NotifyOfException(string, string, System.Exception, strin
 10    /// </summary>
 11    public sealed class ExceptionReceivedEventArgs
 12    {
 013        internal ExceptionReceivedEventArgs(string hostname, string partitionId, Exception exception, string action)
 14        {
 015            this.Hostname = hostname;
 016            this.PartitionId = partitionId;
 017            this.Exception = exception;
 018            this.Action = action;
 019        }
 20
 21        /// <summary>
 22        /// Allows distinguishing the error source if multiple hosts in a single process.
 23        /// </summary>
 24        /// <value>The name of the host that experienced the exception.</value>
 025        public string Hostname { get; }
 26
 27        /// <summary>
 28        /// Allows distinguishing the error source if multiple hosts in a single process.
 29        /// </summary>
 30        /// <value>The partition id that experienced the exception.</value>
 031        public string PartitionId { get; }
 32
 33        /// <summary>
 34        /// The exception that was thrown.
 35        /// </summary>
 036        public Exception Exception { get; }
 37
 38        /// <summary>
 39        /// A short string that indicates what general activity threw the exception.
 40        /// See EventProcessorHostActionString for a list of possible values.
 41        /// </summary>
 042        public string Action { get; }
 43    }
 44}