public TimelineMessageProjection(UserId ownerId, UserId authorId, string content, MessageId messageId)
     : this()
 {
     OwnerId = ownerId;
     AuthorId = authorId;
     Content = content;
     MessageId = messageId;
 }
 public TimelineMessageId(UserId owner, MessageId messageId)
     : this()
 {
     Owner = owner;
     MessageId = messageId;
 }
Beispiel #3
0
        public static Message Publish(IEventPublisher eventPublisher, UserId author, string content)
        {
            var messagePublished = new MessagePublished(MessageId.Generate(), author, content);

            return(new Message(eventPublisher, messagePublished));
        }
Beispiel #4
0
        public void Reply(IEventPublisher eventPublisher, UserId replier, string replyContent)
        {
            var evt = new ReplyMessagePublished(MessageId.Generate(), replier, replyContent, _projection.Id);

            eventPublisher.Publish(evt);
        }
Beispiel #5
0
 public TimelineMessageProjection(UserId ownerId, UserId authorId, string content, MessageId messageId)
     : this()
 {
     OwnerId   = ownerId;
     AuthorId  = authorId;
     Content   = content;
     MessageId = messageId;
 }