internal InMemoryChatChannel(Guid id, string displayName, IChatAuthor currentAuthor) { Id = id; DisplayName = displayName; _currentAuthor = currentAuthor; }
public void SendFakeMessage(IChatAuthor author, string text) { var message = new InMemoryChatMessage(author, DateTimeOffset.Now, text); Messages.Add(message); OnMessageReceived?.Invoke(message); }
internal TcpChatMessage(IChatAuthor author, DateTimeOffset postedAt, string text) { Author = author; PostedAt = postedAt; Text = text; }