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.Messages;
13 :
14 : namespace Cqrs.Events
15 : {
16 : [Serializable]
17 : [DataContract]
18 : public class DuplicateCreateCommandEvent<TAuthenticationToken> : IEvent<TAuthenticationToken>
19 0 : {
20 : #region Implementation of IMessage
21 :
22 : [DataMember]
23 : public Guid CorrelationId { get; set; }
24 :
25 : [DataMember]
26 : [Obsolete("Use Frameworks, It's far more flexible and OriginatingFramework")]
27 : public FrameworkType Framework { get; set; }
28 :
29 : /// <summary>
30 : /// The originating framework this message was sent from.
31 : /// </summary>
32 : [DataMember]
33 : public string OriginatingFramework { get; set; }
34 :
35 : /// <summary>
36 : /// The frameworks this <see cref="IMessage"/> has been delivered to/sent via already.
37 : /// </summary>
38 : [DataMember]
39 : public IEnumerable<string> Frameworks { get; set; }
40 :
41 : [Obsolete("Use CorrelationId")]
42 : [DataMember]
43 : public Guid CorrolationId
44 : {
45 : get { return CorrelationId; }
46 : set { CorrelationId = value; }
47 : }
48 :
49 : #endregion
50 :
51 : #region Implementation of IMessageWithAuthenticationToken<TAuthenticationToken>
52 :
53 : [DataMember]
54 : public TAuthenticationToken AuthenticationToken { get; set; }
55 :
56 : #endregion
57 :
58 : #region Implementation of IEvent<TAuthenticationToken>
59 :
60 : [DataMember]
61 : public Guid Id { get; set; }
62 :
63 : [DataMember]
64 : public int Version { get; set; }
65 :
66 : [DataMember]
67 : public DateTimeOffset TimeStamp { get; set; }
68 :
69 : #endregion
70 :
71 : [DataMember]
72 : public Type AggregateType { get; set; }
73 :
74 : [DataMember]
75 : public Guid AggregateRsn { get; set; }
76 : }
77 : }
|