< Summary

Class:Azure.Messaging.EventHubs.Primitives.EventProcessorPartitionOwnership
Assembly:Azure.Messaging.EventHubs
File(s):C:\Git\azure-sdk-for-net\sdk\eventhub\Azure.Messaging.EventHubs\src\Primitives\EventProcessorPartitionOwnership.cs
Covered lines:7
Uncovered lines:0
Coverable lines:7
Total lines:61
Line coverage:100% (7 of 7)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_FullyQualifiedNamespace()-100%100%
get_EventHubName()-100%100%
get_ConsumerGroup()-100%100%
get_OwnerIdentifier()-100%100%
get_PartitionId()-100%100%
get_LastModifiedTime()-100%100%
get_Version()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventhub\Azure.Messaging.EventHubs\src\Primitives\EventProcessorPartitionOwnership.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5
 6namespace Azure.Messaging.EventHubs.Primitives
 7{
 8    /// <summary>
 9    ///   The set of information for describing the status of the partition ownership between <see cref="EventProcessor{
 10    ///   instances cooperating for distribution of processing for a given Event Hub.
 11    /// </summary>
 12    ///
 13    /// <seealso cref="EventProcessor{TPartition}" />
 14    ///
 15    public class EventProcessorPartitionOwnership
 16    {
 17        /// <summary>
 18        ///   The fully qualified Event Hubs namespace this ownership is associated with.  This
 19        ///   is likely to be similar to <c>{yournamespace}.servicebus.windows.net</c>.
 20        /// </summary>
 21        ///
 252022        public string FullyQualifiedNamespace { get; set; }
 23
 24        /// <summary>
 25        ///   The name of the specific Event Hub this ownership is associated with, relative
 26        ///   to the Event Hubs namespace that contains it.
 27        /// </summary>
 28        ///
 251629        public string EventHubName { get; set; }
 30
 31        /// <summary>
 32        ///   The name of the consumer group this ownership is associated with.
 33        /// </summary>
 34        ///
 251235        public string ConsumerGroup { get; set; }
 36
 37        /// <summary>
 38        ///   The identifier of the associated <see cref="EventProcessor{TPartition}" /> instance.
 39        /// </summary>
 40        ///
 465041        public string OwnerIdentifier { get; set; }
 42
 43        /// <summary>
 44        ///   The identifier of the Event Hub partition this ownership is associated with.
 45        /// </summary>
 46        ///
 530647        public string PartitionId { get; set; }
 48
 49        /// <summary>
 50        ///   The date and time, in UTC, that the last update was made to this ownership.
 51        /// </summary>
 52        ///
 148653        public DateTimeOffset LastModifiedTime { get; set; }
 54
 55        /// <summary>
 56        ///   The version metadata needed to update this ownership.
 57        /// </summary>
 58        ///
 216059        public string Version { get; set; }
 60    }
 61}