Exemplo n.º 1
0
        public void Handle(object sender, PrivRequestEventArgs e)
        {
            string message = string.Empty;
            Command <IPrivRequest> command = FetchFromSet(e.RequestName, privCommands);

            message = command?.Execute(e);

            if (!string.IsNullOrEmpty(message))
            {
                client.SendMessage(message);
            }
        }
Exemplo n.º 2
0
 public virtual void OnEvent(PrivRequestEventArgs e)
 {
     PrivRequestHandler(this, e);
 }