/
BlogCreatedEvent.cs
42 lines (37 loc) · 1.13 KB
/
BlogCreatedEvent.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using TJ.CQRS.Event;
namespace NBlog.Domain.Event
{
public class UserAddedToBlogEvent : DomainEventBase
{
public Guid UserId { get; set; }
public UserAddedToBlogEvent(Guid userId, Guid aggregateId)
{
UserId = userId;
AggregateId = aggregateId;
}
}
public class BlogCreatedEvent : DomainEventBase
{
public BlogCreatedEvent(string blogTitle, string subTitle, DateTime creationTime, Guid aggregateId)
{
BlogTitle = blogTitle;
SubTitle = subTitle;
CreationTime = creationTime;
AggregateId = aggregateId;
}
public string BlogTitle { get; set; }
public string SubTitle { get; set; }
public DateTime CreationTime { get; set; }
}
public class GoogleAnalyticsEnabledEvent : DomainEventBase
{
public string UAAccount { get; set; }
public Guid AggregateId { get; set; }
public GoogleAnalyticsEnabledEvent(string uaAccount, Guid aggregateId)
{
UAAccount = uaAccount;
AggregateId = aggregateId;
}
}
}