-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRequestMessage.cs
More file actions
48 lines (45 loc) · 1.95 KB
/
RequestMessage.cs
File metadata and controls
48 lines (45 loc) · 1.95 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
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using System;
using System.Runtime.Serialization;
namespace RapidField.SolidInstruments.Messaging
{
/// <summary>
/// Represents a message that requests a response of a specified type.
/// </summary>
/// <remarks>
/// <see cref="RequestMessage{TResponseMessage}" /> is the default implementation of
/// <see cref="IRequestMessage{TResponseMessage}" />.
/// </remarks>
/// <typeparam name="TResponseMessage">
/// The type of the response message that is associated with the request.
/// </typeparam>
[DataContract]
public abstract class RequestMessage<TResponseMessage> : Message<TResponseMessage>, IRequestMessage<TResponseMessage>
where TResponseMessage : class, IResponseMessage
{
/// <summary>
/// Initializes a new instance of the <see cref="RequestMessage{TResponseMessage}" /> class.
/// </summary>
protected RequestMessage()
: base()
{
return;
}
/// <summary>
/// Initializes a new instance of the <see cref="RequestMessage{TResponseMessage}" /> class.
/// </summary>
/// <param name="correlationIdentifier">
/// A unique identifier that is assigned to related messages.
/// </param>
/// <exception cref="ArgumentOutOfRangeException">
/// <paramref name="correlationIdentifier" /> is equal to <see cref="Guid.Empty" />.
/// </exception>
protected RequestMessage(Guid correlationIdentifier)
: base(correlationIdentifier)
{
return;
}
}
}