Beispiel #1
0
        public void Handle(object sender, InfoOperationRequestEventArgs e)
        {
            string message = string.Empty;

            ICommand command = FetchFromAll(e.RequestName);

            if (command != null)
            {
                message = command.Info();
            }

            if (!string.IsNullOrWhiteSpace(message))
            {
                client.Whisper(e.User, message);
            }
        }
Beispiel #2
0
 public void OnEvent(InfoOperationRequestEventArgs e)
 {
     InfoOperationHandler(this, e);
 }