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; }
public static Message Publish(IEventPublisher eventPublisher, UserId author, string content) { var messagePublished = new MessagePublished(MessageId.Generate(), author, content); return(new Message(eventPublisher, messagePublished)); }
public void Reply(IEventPublisher eventPublisher, UserId replier, string replyContent) { var evt = new ReplyMessagePublished(MessageId.Generate(), replier, replyContent, _projection.Id); eventPublisher.Publish(evt); }