< Summary

Class:Azure.Core.AzureResourceProviderNamespaceAttribute
Assembly:Azure.Storage.Blobs.Batch
File(s):C:\Git\azure-sdk-for-net\sdk\core\Azure.Core\src\Shared\AzureResourceProviderNamespaceAttribute.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:22
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\core\Azure.Core\src\Shared\AzureResourceProviderNamespaceAttribute.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5
 6namespace Azure.Core
 7{
 8    /// <summary>
 9    /// This attribute should be set on all client assemblies with value of one of the resource providers
 10    /// from the https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-provid
 11    /// </summary>
 12    [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
 13    internal class AzureResourceProviderNamespaceAttribute : Attribute
 14    {
 015        public string ResourceProviderNamespace { get; }
 16
 017        public AzureResourceProviderNamespaceAttribute(string resourceProviderNamespace)
 18        {
 019            ResourceProviderNamespace = resourceProviderNamespace;
 020        }
 21    }
 22}