< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\eventhub\Microsoft.Azure.EventHubs.Processor\src\LeaseLostException.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.EventHubs.Primitives;
 5
 6namespace Microsoft.Azure.EventHubs.Processor
 7{
 8    using System;
 9
 10    /// <summary>
 11    /// Represents an exception that occurs when the service lease has been lost.
 12    /// </summary>
 13    public class LeaseLostException : Exception
 14    {
 15        readonly string partitionId;
 16
 17    /// <summary>
 18    /// Provides
 19    /// </summary>
 20        public LeaseLostException(string partitionId, Exception innerException)
 021            : base(innerException.Message, innerException)
 22        {
 023            Guard.ArgumentNotNullOrWhiteSpace(nameof(partitionId), partitionId);
 024            this.partitionId = partitionId;
 025        }
 26
 27        /// <summary>
 28        /// Gets the partition ID where the exception occured.
 29        /// </summary>
 030        public string PartitionId => this.partitionId;
 31    }
 32}

Methods/Properties

.ctor(...)
get_PartitionId()