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.Collections.Generic;
11 : using System.Runtime.Serialization;
12 : using Cqrs.Events;
13 : using Cqrs.Messages;
14 :
15 : namespace Cqrs.Akka.Tests.Unit.Events
16 : {
17 : /// <summary>
18 : /// The conversation has ended.
19 : /// </summary>
20 : [Serializable]
21 : public class ConversationEnded : IEvent<Guid>
22 1 : {
23 : #region Implementation of IMessage
24 :
25 : /// <summary>
26 : /// An identifier used to group together several <see cref="IMessage"/>. Any <see cref="IMessage"/> with the same <see cref="CorrelationId"/> were triggered by the same initiating request.
27 : /// </summary>
28 : [DataMember]
29 : public Guid CorrelationId { get; set; }
30 :
31 : /// <summary>
32 : /// The originating framework this message was sent from.
33 : /// </summary>
34 : [DataMember]
35 : public string OriginatingFramework { get; set; }
36 :
37 : /// <summary>
38 : /// The frameworks this <see cref="IMessage"/> has been delivered to/sent via already.
39 : /// </summary>
40 : [DataMember]
41 : public IEnumerable<string> Frameworks { get; set; }
42 :
43 : #endregion
44 :
45 : #region Implementation of IMessageWithAuthenticationToken<Guid>
46 :
47 : /// <summary>
48 : /// The authentication token of the entity that triggered the event to be raised.
49 : /// </summary>
50 : [DataMember]
51 : public Guid AuthenticationToken { get; set; }
52 :
53 : #endregion
54 :
55 : #region Implementation of IEvent<Guid>
56 :
57 : /// <summary>
58 : /// The ID of the <see cref="IEvent{TAuthenticationToken}"/>
59 : /// </summary>
60 : [DataMember]
61 : public Guid Id { get; set; }
62 :
63 : /// <summary>
64 : /// The version of the <see cref="IEvent{TAuthenticationToken}"/>
65 : /// </summary>
66 : [DataMember]
67 : public int Version { get; set; }
68 :
69 : /// <summary>
70 : /// The date and time the event was raised or published.
71 : /// </summary>
72 : [DataMember]
73 : public DateTimeOffset TimeStamp { get; set; }
74 :
75 : #endregion
76 : }
77 : }
|