/// <summary> /// Sends a message to a client. If message or client are null nothing is done. /// </summary> /// <param name="from">From.</param> /// <param name="args">The <see cref="MessageEventArgs"/> instance containing the event data.</param> public void ReplyToClient(object from, MessageEventArgs args) { // if message is null then reply is not sent to client IClientView client = from as IClientView; if (client == null) { return; } if (args.Msg != null) { client.SendMessage(args.Msg); } }