< Summary

Class:Azure.Messaging.ServiceBus.Management.ManagementClientConstants
Assembly:Azure.Messaging.ServiceBus
File(s):C:\Git\azure-sdk-for-net\sdk\servicebus\Azure.Messaging.ServiceBus\src\Management\ManagementClientConstants.cs
Covered lines:13
Uncovered lines:0
Coverable lines:13
Total lines:130
Line coverage:100% (13 of 13)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.cctor()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\servicebus\Azure.Messaging.ServiceBus\src\Management\ManagementClientConstants.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using System.Globalization;
 6
 7namespace Azure.Messaging.ServiceBus.Management
 8{
 9    internal class ManagementClientConstants
 10    {
 11        public const int QueueNameMaximumLength = 260;
 12        public const int TopicNameMaximumLength = 260;
 13        public const int SubscriptionNameMaximumLength = 50;
 14        public const int RuleNameMaximumLength = 50;
 15
 16        public const string AtomNamespace = "http://www.w3.org/2005/Atom";
 17        public const string ServiceBusNamespace = "http://schemas.microsoft.com/netservices/2010/10/servicebus/connect";
 18        public const string XmlSchemaInstanceNamespace = "http://www.w3.org/2001/XMLSchema-instance";
 19        public const string XmlSchemaNamespace = "http://www.w3.org/2001/XMLSchema";
 20        public const string SerializationNamespace = "http://schemas.microsoft.com/2003/10/Serialization/";
 21        public const string AtomContentType = "application/atom+xml";
 22        public const string apiVersionQuery = "api-version=" + ApiVersion;
 23        public const string ApiVersion = "2017-04";
 24
 25        public const string ServiceBusSupplementartyAuthorizationHeaderName = "ServiceBusSupplementaryAuthorization";
 26        public const string ServiceBusDlqSupplementaryAuthorizationHeaderName = "ServiceBusDlqSupplementaryAuthorization
 27        public const string HttpErrorSubCodeFormatString = "SubCode={0}";
 228        public static string ConflictOperationInProgressSubCode =
 229            string.Format(CultureInfo.InvariantCulture, HttpErrorSubCodeFormatString, ExceptionErrorCodes.ConflictOperat
 230        public static string ForbiddenInvalidOperationSubCode =
 231            string.Format(CultureInfo.InvariantCulture,
 232                HttpErrorSubCodeFormatString, ExceptionErrorCodes.ForbiddenInvalidOperation.ToString("D"));
 33
 234        public static readonly TimeSpan MinimumAllowedTimeToLive = TimeSpan.FromSeconds(1);
 235        public static readonly TimeSpan MaximumAllowedTimeToLive = TimeSpan.MaxValue;
 236        public static readonly TimeSpan MinimumLockDuration = TimeSpan.FromSeconds(5);
 237        public static readonly TimeSpan MaximumLockDuration = TimeSpan.FromMinutes(5);
 238        public static readonly TimeSpan MinimumAllowedAutoDeleteOnIdle = TimeSpan.FromMinutes(5);
 239        public static readonly TimeSpan MaximumDuplicateDetectionHistoryTimeWindow = TimeSpan.FromDays(7);
 240        public static readonly TimeSpan MinimumDuplicateDetectionHistoryTimeWindow = TimeSpan.FromSeconds(20);
 41        public const int MinAllowedMaxDeliveryCount = 1;
 42        public const int MaxUserMetadataLength = 1024;
 43
 244        public static char[] InvalidEntityPathCharacters = { '@', '?', '#', '*' };
 45
 46        // Authorization constants
 47        public const int SupportedClaimsCount = 3;
 48
 49        /// <summary>Specifies the error codes of the exceptions.</summary>
 50        public enum ExceptionErrorCodes
 51        {
 52            /// <summary>A parse error encountered while processing a request.</summary>
 53            BadRequest = 40000,
 54            /// <summary>A generic unauthorized error.</summary>
 55            UnauthorizedGeneric = 40100,
 56            /// <summary>The service bus has no transport security.</summary>
 57            NoTransportSecurity = 40101,
 58            /// <summary>The token is missing.</summary>
 59            MissingToken = 40102,
 60            /// <summary>The signature is invalid.</summary>
 61            InvalidSignature = 40103,
 62            /// <summary>The audience is invalid.</summary>
 63            InvalidAudience = 40104,
 64            /// <summary>A malformed token.</summary>
 65            MalformedToken = 40105,
 66            /// <summary>The token had expired.</summary>
 67            ExpiredToken = 40106,
 68            /// <summary>The audience is not found.</summary>
 69            AudienceNotFound = 40107,
 70            /// <summary>The expiry date not found.</summary>
 71            ExpiresOnNotFound = 40108,
 72            /// <summary>The issuer cannot be found.</summary>
 73            IssuerNotFound = 40109,
 74            /// <summary>The signature cannot be found.</summary>
 75            SignatureNotFound = 40110,
 76            /// <summary>The incoming ip has been rejected by policy.</summary>
 77            IpRejected = 40111,
 78            /// <summary>The incoming ip is not in acled subnet.</summary>
 79            IpNotInAcledSubNet = 40112,
 80            /// <summary>A generic forbidden error.</summary>
 81            ForbiddenGeneric = 40300,
 82            /// <summary>Operation is not allowed.</summary>
 83            ForbiddenInvalidOperation = 40301,
 84            /// <summary>The endpoint is not found.</summary>
 85            EndpointNotFound = 40400,
 86            /// <summary>The destination is invalid.</summary>
 87            InvalidDestination = 40401,
 88            /// <summary>The namespace is not found.</summary>
 89            NamespaceNotFound = 40402,
 90            /// <summary>The store lock is lost.</summary>
 91            StoreLockLost = 40500,
 92            /// <summary>The SQL filters exceeded its allowable maximum number.</summary>
 93            SqlFiltersExceeded = 40501,
 94            /// <summary>The correlation filters exceeded its allowable maximum number.</summary>
 95            CorrelationFiltersExceeded = 40502,
 96            /// <summary>The subscriptions exceeded its allowable maximum number.</summary>
 97            SubscriptionsExceeded = 40503,
 98            /// <summary>A conflict during updating occurred.</summary>
 99            UpdateConflict = 40504,
 100            /// <summary>The Service Bus entity is at full capacity.</summary>
 101            EventHubAtFullCapacity = 40505,
 102            /// <summary>A generic conflict error.</summary>
 103            ConflictGeneric = 40900,
 104            /// <summary>An operation is in progress.</summary>
 105            ConflictOperationInProgress = 40901,
 106            /// <summary>The entity is not found.</summary>
 107            EntityGone = 41000,
 108            /// <summary>An internal error that is not specified.</summary>
 109            UnspecifiedInternalError = 50000,
 110            /// <summary>The error of data communication.</summary>
 111            DataCommunicationError = 50001,
 112            /// <summary>An internal error.</summary>
 113            InternalFailure = 50002,
 114            /// <summary>The provider is unreachable.</summary>
 115            ProviderUnreachable = 50003,
 116            /// <summary>The server is busy.</summary>
 117            ServerBusy = 50004,
 118            /// <summary> Archive Storage Account Server is busy. </summary>
 119            ArchiveStorageAccountServerBusy = 50005,
 120            /// <summary> Archive Storage Account ResourceId is invalid. </summary>
 121            InvalidArchiveStorageAccountResourceId = 50006,
 122            /// <summary>The error is caused by bad gateway.</summary>
 123            BadGatewayFailure = 50200,
 124            /// <summary>The gateway did not receive a timely response from the upstream server.</summary>
 125            GatewayTimeoutFailure = 50400,
 126            /// <summary>This exception detail will be used for those exceptions that are thrown without specific any ex
 127            UnknownExceptionDetail = 60000,
 128        }
 129    }
 130}

Methods/Properties

.cctor()