Line data Source code
1 : #region Copyright
2 : // -----------------------------------------------------------------------
3 : // <copyright company="Chinchilla Software Limited">
4 : // Copyright Chinchilla Software Limited. All rights reserved.
5 : // </copyright>
6 : // -----------------------------------------------------------------------
7 : #endregion
8 :
9 : using System;
10 : using System.Runtime.Serialization;
11 :
12 : namespace Cqrs.Services
13 : {
14 : /// <summary>
15 : /// A request message envelope that holds authentication and correlation information used when making public API requests.
16 : /// </summary>
17 : /// <typeparam name="TAuthenticationToken">The <see cref="Type">type</see> of authentication token used.</typeparam>
18 : [Serializable]
19 : [DataContract]
20 : public class ServiceRequest<TAuthenticationToken> : IServiceRequest<TAuthenticationToken>
21 1 : {
22 : /// <summary>
23 : /// The authentication token used to identify the requester.
24 : /// </summary>
25 : [DataMember]
26 : public TAuthenticationToken AuthenticationToken { get; set; }
27 :
28 : /// <summary>
29 : /// The correlation id used to group together events and notifications.
30 : /// </summary>
31 : [DataMember]
32 : public Guid CorrelationId { get; set; }
33 : }
34 : }
|