private void EventHandlerClientDisconnected(object sender, ConnectionArgs args) { lock (lockVar) { _connections.Remove(args.Connection); } if (this.UserDisconnected != null) { this.UserDisconnected(this, args); } }
private void RaiseInputReceived(ConnectionArgs connectionArgs, string action) { if (this.UserCommandReceived != null) { this.UserCommandReceived(this, new CommandRecivedArgs(connectionArgs.Connection, action)); } }