-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathHeaders.cs
More file actions
30 lines (22 loc) · 594 Bytes
/
Headers.cs
File metadata and controls
30 lines (22 loc) · 594 Bytes
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
using Headers = NServiceBus.Transport.SqlServerNative.Headers;
// ReSharper disable UnusedVariable
public class HeadersUsage
{
static void Serialize()
{
#region Serialize
var headers = new Dictionary<string, string>
{
{Headers.EnclosedMessageTypes, "SendMessage"}
};
var serialized = Headers.Serialize(headers);
#endregion
}
static void Deserialize()
{
string headersString = null!;
#region Deserialize
var headers = Headers.DeSerialize(headersString);
#endregion
}
}