| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | |
|
| | 6 | | namespace Azure.Messaging.ServiceBus |
| | 7 | | { |
| | 8 | | internal static class Constants |
| | 9 | | { |
| | 10 | | public const int MaxMessageIdLength = 128; |
| | 11 | |
|
| | 12 | | public const int MaxPartitionKeyLength = 128; |
| | 13 | |
|
| | 14 | | public const int MaxSessionIdLength = 128; |
| | 15 | |
|
| | 16 | | public const string PathDelimiter = @"/"; |
| | 17 | |
|
| | 18 | | public const int RuleNameMaximumLength = 50; |
| | 19 | |
|
| | 20 | | public const int MaximumSqlRuleFilterStatementLength = 1024; |
| | 21 | |
|
| | 22 | | public const int MaximumSqlRuleActionStatementLength = 1024; |
| | 23 | |
|
| | 24 | | public const int DefaultClientPrefetchCount = 0; |
| | 25 | |
|
| | 26 | | public const int MaxDeadLetterReasonLength = 4096; |
| | 27 | |
|
| | 28 | | public const long DefaultLastPeekedSequenceNumber = 0; |
| | 29 | |
|
| 0 | 30 | | public static readonly TimeSpan DefaultOperationTimeout = TimeSpan.FromMinutes(1); |
| | 31 | |
|
| 0 | 32 | | public static readonly TimeSpan ClientPumpRenewLockTimeout = TimeSpan.FromMinutes(5); |
| | 33 | |
|
| 0 | 34 | | public static readonly TimeSpan MaximumRenewBufferDuration = TimeSpan.FromSeconds(10); |
| | 35 | |
|
| 0 | 36 | | public static readonly TimeSpan DefaultRetryDeltaBackoff = TimeSpan.FromSeconds(3); |
| | 37 | |
|
| 0 | 38 | | public static readonly TimeSpan NoMessageBackoffTimeSpan = TimeSpan.FromSeconds(5); |
| | 39 | |
|
| | 40 | | public const string SasTokenType = "servicebus.windows.net:sastoken"; |
| | 41 | |
|
| | 42 | | public const string JsonWebTokenType = "jwt"; |
| | 43 | |
|
| | 44 | | public const string AadServiceBusAudience = "https://servicebus.azure.net/"; |
| | 45 | |
|
| | 46 | | /// Represents 00:00:00 UTC Thursday 1, January 1970. |
| 0 | 47 | | public static readonly DateTime EpochTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); |
| | 48 | |
|
| | 49 | | public const int WellKnownPublicPortsLimit = 1023; |
| | 50 | |
|
| | 51 | | public const string DefaultScope = "https://servicebus.azure.net/.default"; |
| | 52 | | } |
| | 53 | | } |