Ejemplo n.º 1
0
        private void EventHandlerClientDisconnected(object sender, ConnectionArgs args)
        {
            lock (lockVar)
            {
                _connections.Remove(args.Connection);
            }

            if (this.UserDisconnected != null)
            {
                this.UserDisconnected(this, args);
            }
        }
Ejemplo n.º 2
0
 private void RaiseInputReceived(ConnectionArgs connectionArgs, string action)
 {
     if (this.UserCommandReceived != null)
     {
         this.UserCommandReceived(this, new CommandRecivedArgs(connectionArgs.Connection, action));
     }
 }