Line data Source code
1 : #region Copyright
2 : // // -----------------------------------------------------------------------
3 : // // <copyright company="cdmdotnet Limited">
4 : // // Copyright cdmdotnet Limited. All rights reserved.
5 : // // </copyright>
6 : // // -----------------------------------------------------------------------
7 : #endregion
8 :
9 : using System;
10 : using System.Collections.Generic;
11 : using System.Runtime.Serialization;
12 : using Cqrs.Commands;
13 : using Cqrs.Messages;
14 :
15 : namespace Cqrs.Azure.ServiceBus.Tests.Unit
16 : {
17 : public class TestCommand : ICommand<Guid>
18 0 : {
19 : #region Implementation of IMessageWithAuthenticationToken<Guid>
20 :
21 : [DataMember]
22 : public Guid AuthenticationToken { get; set; }
23 :
24 : #endregion
25 :
26 : #region Implementation of ICommand<Guid>
27 :
28 : [DataMember]
29 : public int ExpectedVersion { get; set; }
30 :
31 : #endregion
32 :
33 : [DataMember]
34 : public Guid Id { get; set; }
35 :
36 : #region Implementation of IMessage
37 :
38 : [DataMember]
39 : public Guid CorrelationId { get; set; }
40 :
41 : /// <summary>
42 : /// The originating framework this message was sent from.
43 : /// </summary>
44 : [DataMember]
45 : public string OriginatingFramework { get; set; }
46 :
47 : /// <summary>
48 : /// The frameworks this <see cref="IMessage"/> has been delivered to/sent via already.
49 : /// </summary>
50 : [DataMember]
51 : public IEnumerable<string> Frameworks { get; set; }
52 :
53 : #endregion
54 : }
55 : }
|