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