public TimelineMessageProjection(UserId ownerId, UserId authorId, string content, MessageId messageId)
     : this()
 {
     OwnerId = ownerId;
     AuthorId = authorId;
     Content = content;
     MessageId = messageId;
 }
示例#2
0
 public TimelineMessageId(UserId owner, MessageId messageId)
     : this()
 {
     Owner = owner;
     MessageId = messageId;
 }
示例#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));
        }
示例#4
0
        public void Reply(IEventPublisher eventPublisher, UserId replier, string replyContent)
        {
            var evt = new ReplyMessagePublished(MessageId.Generate(), replier, replyContent, _projection.Id);

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