< Summary

Class:Microsoft.Azure.EventGrid.Models.ContainerRegistryEventSource
Assembly:Microsoft.Azure.EventGrid
File(s):C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\ContainerRegistryEventSource.cs
Covered lines:2
Uncovered lines:6
Coverable lines:8
Total lines:68
Line coverage:25% (2 of 8)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\ContainerRegistryEventSource.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.EventGrid.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// The registry node that generated the event. Put differently, while the
 18    /// actor initiates the event, the source generates it.
 19    /// </summary>
 20    public partial class ContainerRegistryEventSource
 21    {
 22        /// <summary>
 23        /// Initializes a new instance of the ContainerRegistryEventSource
 24        /// class.
 25        /// </summary>
 326        public ContainerRegistryEventSource()
 27        {
 28            CustomInit();
 329        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the ContainerRegistryEventSource
 33        /// class.
 34        /// </summary>
 35        /// <param name="addr">The IP or hostname and the port of the registry
 36        /// node that generated the event. Generally, this will be resolved by
 37        /// os.Hostname() along with the running port.</param>
 38        /// <param name="instanceID">The running instance of an application.
 39        /// Changes after each restart.</param>
 040        public ContainerRegistryEventSource(string addr = default(string), string instanceID = default(string))
 41        {
 042            Addr = addr;
 043            InstanceID = instanceID;
 44            CustomInit();
 045        }
 46
 47        /// <summary>
 48        /// An initialization method that performs custom operations like setting defaults
 49        /// </summary>
 50        partial void CustomInit();
 51
 52        /// <summary>
 53        /// Gets or sets the IP or hostname and the port of the registry node
 54        /// that generated the event. Generally, this will be resolved by
 55        /// os.Hostname() along with the running port.
 56        /// </summary>
 57        [JsonProperty(PropertyName = "addr")]
 058        public string Addr { get; set; }
 59
 60        /// <summary>
 61        /// Gets or sets the running instance of an application. Changes after
 62        /// each restart.
 63        /// </summary>
 64        [JsonProperty(PropertyName = "instanceID")]
 065        public string InstanceID { get; set; }
 66
 67    }
 68}