Beispiel #1
0
 public void Handle(PostedMessage message) =>
 OnMessagePosted?.Invoke(Message.FromDTO(message.Message));
Beispiel #2
0
 /// <summary>
 ///     Posts a message from the client (FileMonitorInterceptor) to the server (FileMonitorController).
 /// </summary>
 /// <remarks>
 ///     The message isn't really "sent". Rather, an event handler is fired, and the server has hopefully subscribed to this
 ///     event handler.
 /// </remarks>
 /// <param name="message">The string message to post.</param>
 public void PostMessage(string message)
 {
     OnMessagePosted?.Invoke(this, new MessageEventArgs(message));
 }