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);
        }
Пример #3
0
 internal TcpChatMessage(IChatAuthor author, DateTimeOffset postedAt, string text)
 {
     Author   = author;
     PostedAt = postedAt;
     Text     = text;
 }