< Summary

Class:Azure.Messaging.ServiceBus.Amqp.AmqpClientConstants
Assembly:Azure.Messaging.ServiceBus
File(s):C:\Git\azure-sdk-for-net\sdk\servicebus\Azure.Messaging.ServiceBus\src\Amqp\AmqpClientConstants.cs
Covered lines:30
Uncovered lines:0
Coverable lines:30
Total lines:67
Line coverage:100% (30 of 30)
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\Amqp\AmqpClientConstants.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using Microsoft.Azure.Amqp;
 6using Microsoft.Azure.Amqp.Encoding;
 7
 8namespace Azure.Messaging.ServiceBus.Amqp
 9{
 10    internal class AmqpClientConstants
 11    {
 12        // AMQP Management Operation
 13        public const string ManagementAddress = "$management";
 14        public const string EntityTypeManagement = "entity-mgmt";
 15        public const string EntityNameKey = "name";
 16        public const string PartitionNameKey = "partition";
 17        public const string ManagementOperationKey = "operation";
 18        public const string ReadOperationValue = "READ";
 19        public const string ManagementEntityTypeKey = "type";
 20        public const string ManagementSecurityTokenKey = "security_token";
 21
 22        // Filters
 23        public const string FilterOffsetPartName = "amqp.annotation.x-opt-offset";
 24        public const string FilterOffset = FilterOffsetPartName + " > ";
 25        public const string FilterInclusiveOffset = FilterOffsetPartName + " >= ";
 26        public const string FilterOffsetFormatString = FilterOffset + "'{0}'";
 27        public const string FilterInclusiveOffsetFormatString = FilterInclusiveOffset + "'{0}'";
 28        public const string FilterReceivedAtPartNameV1 = "amqp.annotation.x-opt-enqueuedtimeutc";
 29        public const string FilterReceivedAtPartNameV2 = "amqp.annotation.x-opt-enqueued-time";
 30        public const string FilterReceivedAt = FilterReceivedAtPartNameV2 + " > ";
 31        public const string FilterReceivedAtFormatString = FilterReceivedAt + "{0}";
 232        public static readonly AmqpSymbol SessionFilterName = AmqpConstants.Vendor + ":session-filter";
 233        public static readonly AmqpSymbol MessageReceiptsFilterName = AmqpConstants.Vendor + ":message-receipts-filter";
 234        public static readonly AmqpSymbol ClientSideCursorFilterName = AmqpConstants.Vendor + ":client-side-filter";
 235        public static readonly TimeSpan ClientMinimumTokenRefreshInterval = TimeSpan.FromMinutes(4);
 36
 37        // Properties
 238        public static readonly AmqpSymbol AttachEpoch = AmqpConstants.Vendor + ":epoch";
 239        public static readonly AmqpSymbol BatchFlushIntervalName = AmqpConstants.Vendor + ":batch-flush-interval";
 240        public static readonly AmqpSymbol EntityTypeName = AmqpConstants.Vendor + ":entity-type";
 241        public static readonly AmqpSymbol TransferDestinationAddress = AmqpConstants.Vendor + ":transfer-destination-add
 242        public static readonly AmqpSymbol TimeoutName = AmqpConstants.Vendor + ":timeout";
 243        public static readonly AmqpSymbol TrackingIdName = AmqpConstants.Vendor + ":tracking-id";
 44
 45        // Error codes
 246        public static readonly AmqpSymbol DeadLetterName = AmqpConstants.Vendor + ":dead-letter";
 247        public static readonly AmqpSymbol TimeoutError = AmqpConstants.Vendor + ":timeout";
 248        public static readonly AmqpSymbol AddressAlreadyInUseError = AmqpConstants.Vendor + ":address-already-in-use";
 249        public static readonly AmqpSymbol AuthorizationFailedError = AmqpConstants.Vendor + ":auth-failed";
 250        public static readonly AmqpSymbol MessageLockLostError = AmqpConstants.Vendor + ":message-lock-lost";
 251        public static readonly AmqpSymbol SessionLockLostError = AmqpConstants.Vendor + ":session-lock-lost";
 252        public static readonly AmqpSymbol StoreLockLostError = AmqpConstants.Vendor + ":store-lock-lost";
 253        public static readonly AmqpSymbol SessionCannotBeLockedError = AmqpConstants.Vendor + ":session-cannot-be-locked
 254        public static readonly AmqpSymbol NoMatchingSubscriptionError = AmqpConstants.Vendor + ":no-matching-subscriptio
 255        public static readonly AmqpSymbol ServerBusyError = AmqpConstants.Vendor + ":server-busy";
 256        public static readonly AmqpSymbol ArgumentError = AmqpConstants.Vendor + ":argument-error";
 257        public static readonly AmqpSymbol ArgumentOutOfRangeError = AmqpConstants.Vendor + ":argument-out-of-range";
 258        public static readonly AmqpSymbol PartitionNotOwnedError = AmqpConstants.Vendor + ":partition-not-owned";
 259        public static readonly AmqpSymbol EntityDisabledError = AmqpConstants.Vendor + ":entity-disabled";
 260        public static readonly AmqpSymbol PublisherRevokedError = AmqpConstants.Vendor + ":publisher-revoked";
 261        public static readonly AmqpSymbol OperationCancelledError = AmqpConstants.Vendor + ":operation-cancelled";
 262        public static readonly AmqpSymbol EntityAlreadyExistsError = AmqpConstants.Vendor + ":entity-already-exists";
 263        public static readonly AmqpSymbol RelayNotFoundError = AmqpConstants.Vendor + ":relay-not-found";
 264        public static readonly AmqpSymbol MessageNotFoundError = AmqpConstants.Vendor + ":message-not-found";
 265        public static readonly AmqpSymbol LockedUntilUtc = AmqpConstants.Vendor + ":locked-until-utc";
 66    }
 67}

Methods/Properties

.cctor()