| | 1 | | // Copyright (c) Microsoft. All rights reserved. |
| | 2 | | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| | 3 | |
|
| | 4 | | namespace Microsoft.Azure.ServiceBus.Amqp |
| | 5 | | { |
| | 6 | | using Microsoft.Azure.Amqp.Encoding; |
| | 7 | |
|
| | 8 | | static class ManagementConstants |
| | 9 | | { |
| | 10 | | public const string Microsoft = "com.microsoft"; |
| | 11 | |
|
| | 12 | | public static class Request |
| | 13 | | { |
| | 14 | | public const string Operation = "operation"; |
| | 15 | | public const string AssociatedLinkName = "associated-link-name"; |
| | 16 | | } |
| | 17 | |
|
| | 18 | | public static class Response |
| | 19 | | { |
| | 20 | | public const string StatusCode = "statusCode"; |
| | 21 | | public const string StatusDescription = "statusDescription"; |
| | 22 | | public const string ErrorCondition = "errorCondition"; |
| | 23 | | } |
| | 24 | |
|
| | 25 | | public static class Operations |
| | 26 | | { |
| | 27 | | public const string RenewLockOperation = Microsoft + ":renew-lock"; |
| | 28 | | public const string ReceiveBySequenceNumberOperation = Microsoft + ":receive-by-sequence-number"; |
| | 29 | | public const string UpdateDispositionOperation = Microsoft + ":update-disposition"; |
| | 30 | | public const string RenewSessionLockOperation = Microsoft + ":renew-session-lock"; |
| | 31 | | public const string SetSessionStateOperation = Microsoft + ":set-session-state"; |
| | 32 | | public const string GetSessionStateOperation = Microsoft + ":get-session-state"; |
| | 33 | | public const string PeekMessageOperation = Microsoft + ":peek-message"; |
| | 34 | | public const string AddRuleOperation = Microsoft + ":add-rule"; |
| | 35 | | public const string RemoveRuleOperation = Microsoft + ":remove-rule"; |
| | 36 | | public const string EnumerateRulesOperation = Microsoft + ":enumerate-rules"; |
| | 37 | | public const string ScheduleMessageOperation = Microsoft + ":schedule-message"; |
| | 38 | | public const string CancelScheduledMessageOperation = Microsoft + ":cancel-scheduled-message"; |
| | 39 | | } |
| | 40 | |
|
| | 41 | | public static class Properties |
| | 42 | | { |
| 0 | 43 | | public static readonly MapKey ServerTimeout = new MapKey(Microsoft + ":server-timeout"); |
| 0 | 44 | | public static readonly MapKey TrackingId = new MapKey(Microsoft + ":tracking-id"); |
| | 45 | |
|
| 0 | 46 | | public static readonly MapKey SessionState = new MapKey("session-state"); |
| 0 | 47 | | public static readonly MapKey LockToken = new MapKey("lock-token"); |
| 0 | 48 | | public static readonly MapKey LockTokens = new MapKey("lock-tokens"); |
| 0 | 49 | | public static readonly MapKey SequenceNumbers = new MapKey("sequence-numbers"); |
| 0 | 50 | | public static readonly MapKey Expirations = new MapKey("expirations"); |
| 0 | 51 | | public static readonly MapKey Expiration = new MapKey("expiration"); |
| 0 | 52 | | public static readonly MapKey SessionId = new MapKey("session-id"); |
| 0 | 53 | | public static readonly MapKey MessageId = new MapKey("message-id"); |
| 0 | 54 | | public static readonly MapKey PartitionKey = new MapKey("partition-key"); |
| 0 | 55 | | public static readonly MapKey ViaPartitionKey = new MapKey("via-partition-key"); |
| | 56 | |
|
| 0 | 57 | | public static readonly MapKey ReceiverSettleMode = new MapKey("receiver-settle-mode"); |
| 0 | 58 | | public static readonly MapKey Message = new MapKey("message"); |
| 0 | 59 | | public static readonly MapKey Messages = new MapKey("messages"); |
| 0 | 60 | | public static readonly MapKey DispositionStatus = new MapKey("disposition-status"); |
| 0 | 61 | | public static readonly MapKey PropertiesToModify = new MapKey("properties-to-modify"); |
| 0 | 62 | | public static readonly MapKey DeadLetterReason = new MapKey("deadletter-reason"); |
| 0 | 63 | | public static readonly MapKey DeadLetterDescription = new MapKey("deadletter-description"); |
| | 64 | |
|
| 0 | 65 | | public static readonly MapKey FromSequenceNumber = new MapKey("from-sequence-number"); |
| 0 | 66 | | public static readonly MapKey MessageCount = new MapKey("message-count"); |
| | 67 | |
|
| 0 | 68 | | public static readonly MapKey Skip = new MapKey("skip"); |
| 0 | 69 | | public static readonly MapKey Top = new MapKey("top"); |
| 0 | 70 | | public static readonly MapKey Rules = new MapKey("rules"); |
| 0 | 71 | | public static readonly MapKey RuleName = new MapKey("rule-name"); |
| 0 | 72 | | public static readonly MapKey RuleDescription = new MapKey("rule-description"); |
| 0 | 73 | | public static readonly MapKey RuleCreatedAt = new MapKey("rule-created-at"); |
| 0 | 74 | | public static readonly MapKey SqlFilter = new MapKey("sql-filter"); |
| 0 | 75 | | public static readonly MapKey SqlRuleAction = new MapKey("sql-rule-action"); |
| 0 | 76 | | public static readonly MapKey CorrelationFilter = new MapKey("correlation-filter"); |
| 0 | 77 | | public static readonly MapKey Expression = new MapKey("expression"); |
| 0 | 78 | | public static readonly MapKey CorrelationId = new MapKey("correlation-id"); |
| 0 | 79 | | public static readonly MapKey To = new MapKey("to"); |
| 0 | 80 | | public static readonly MapKey ReplyTo = new MapKey("reply-to"); |
| 0 | 81 | | public static readonly MapKey Label = new MapKey("label"); |
| 0 | 82 | | public static readonly MapKey ReplyToSessionId = new MapKey("reply-to-session-id"); |
| 0 | 83 | | public static readonly MapKey ContentType = new MapKey("content-type"); |
| 0 | 84 | | public static readonly MapKey CorrelationFilterProperties = new MapKey("properties"); |
| | 85 | | } |
| | 86 | | } |
| | 87 | | } |