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); } }
public void OnEvent(InfoOperationRequestEventArgs e) { InfoOperationHandler(this, e); }