Repository navigation
Expand file tree
/
Copy pathIBrokeredMessage.cs
More file actions
169 lines (143 loc) · 4.75 KB
/
Copy pathIBrokeredMessage.cs
File metadata and controls
169 lines (143 loc) · 4.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
//DO NOT Change the namespace.
using System;
using System.Collections.Generic;
namespace ProjectExtensions.Azure.ServiceBus {
/// <summary>
/// Interface for the BrokeredMessage
/// </summary>
public interface IBrokeredMessage {
/// <summary>
/// Gets or sets the type of the content.
/// </summary>
string ContentType {
get;
}
/// <summary>
/// Gets or sets the identifier of the correlation.
/// </summary>
string CorrelationId {
get;
}
/// <summary>
/// Gets the number of deliveries.
/// </summary>
int DeliveryCount {
get;
}
/// <summary>
/// Gets or sets the date and time of the sent time in UTC.
/// </summary>
DateTime EnqueuedTimeUtc {
get;
}
/// <summary>
/// Gets the date and time in UTC at which the message is set to expire.
/// </summary>
DateTime ExpiresAtUtc {
get;
}
/// <summary>
/// Gets or sets the application specific label.
/// </summary>
string Label {
get;
}
/// <summary>
/// Gets the date and time in UTC until which the message will be locked in the queue/subscription.
/// </summary>
DateTime LockedUntilUtc {
get;
}
/// <summary>
/// Gets the lock token assigned by Service Bus to this message.
/// </summary>
Guid LockToken {
get;
}
/// <summary>
/// Gets or sets the identifier of the message.
/// </summary>
string MessageId {
get;
set;
}
/// <summary>
/// Gets the application specific message properties.
/// </summary>
IDictionary<string, object> Properties {
get;
}
/// <summary>
/// Gets or sets the address of the queue to reply to.
/// </summary>
string ReplyTo {
get;
}
/// <summary>
/// Gets or sets the session identifier to reply to.
/// </summary>
string ReplyToSessionId {
get;
}
/// <summary>
/// Gets or sets the date and time in UTC at which the message will be enqueued.
/// </summary>
DateTime ScheduledEnqueueTimeUtc {
get;
}
/// <summary>
/// Gets the unique number assigned to a message by the Service Bus.
/// </summary>
long SequenceNumber {
get;
}
/// <summary>
/// Gets or sets the identifier of the session.
/// </summary>
string SessionId {
get;
}
/// <summary>
/// Gets the size of the message in bytes.
/// </summary>
long Size {
get;
}
/// <summary>
/// Gets or sets the message’s time to live value. This is the duration after which the message expires, starting from when the message is sent to the Service Bus. Messages older than their TimeToLive value will expire and no longer be retained in the message store. Subscribers will be unable to receive expired messages.
/// </summary>
TimeSpan TimeToLive {
get;
}
/// <summary>
/// Gets or sets the send to address.
/// </summary>
string To {
get;
}
/// <summary>
/// Abandons the lock on a peek-locked message.
/// </summary>
void Abandon();
/// <summary>
/// Completes the receive operation of a message and indicates that the message should be marked as processed and deleted or archived.
/// </summary>
void Complete();
/// <summary>
/// Moves the message to the dead letter queue.
/// </summary>
/// <param name="deadLetterReason">The reason for deadlettering the message.</param>
/// <param name="deadLetterErrorDescription">The description information for deadlettering the message.</param>
void DeadLetter(string deadLetterReason, string deadLetterErrorDescription);
/// <summary>
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
/// </summary>
void Dispose();
/// <summary>
/// Deserializes the brokered message body into an object of the specified type by using the supplied XmlObjectSerializer with a binary XmlDictionaryReader.
/// </summary>
/// <typeparam name="T">The type to which the message body will be deserialized.</typeparam>
/// <returns></returns>
T GetBody<T>();
}
}