Пример #1
0
        private void EventHandlerClientDisconnected(object sender, ConnectionArgs args)
        {
            lock (lockVar)
            {
                _connections.Remove(args.Connection);
            }

            if (this.UserDisconnected != null)
            {
                this.UserDisconnected(this, args);
            }
        }
Пример #2
0
 private void RaiseInputReceived(ConnectionArgs connectionArgs, string action)
 {
     if (this.UserCommandReceived != null)
     {
         this.UserCommandReceived(this, new CommandRecivedArgs(connectionArgs.Connection, action));
     }
 }