private static void Main( /*string[] args*/) { var server = new Router.Router(); server.Start(); Console.ReadLine(); server.Stop(); }
private static void Main(/*string[] args*/) { var server = new Router.Router(); server.Start(); Console.ReadLine(); server.Stop(); }
/// <summary> /// Initializes a new instance of the <see cref="Orchestrator"/> class. /// </summary> /// <param name="connectionBroker">The <see cref="ConnectionBroker"/> that lobbies created by this <see cref="Orchestrator"/> should request sockets from.</param> /// <param name="router">Router to connect new lobbies to.</param> internal Orchestrator(ConnectionBroker connectionBroker, Router.Router router) { this.ConnectionBroker = connectionBroker; this.Router = router; API.Instance.AttachCreateLobbyHandler(this); API.Instance.AttachHighScoreListHandler(this); API.Instance.AttachLobbyHandler(this); API.Instance.AttachLobbyListHandler(this); API.Instance.AttachVerifyVersionHandler(this); }
public RobotGUI(SerialPortWrapper serial, Router.Router router) : base(serial) { this.router = router; base.onRobotStatusChange += new EventHandler (RouterPositionUpdate); }
public Settings(Robot.Robot robot, Router.Router router) { this.router = router; this.robot = robot; }
public RobotGUI(SerialPortWrapper serial, Router.Router router) : base(serial) { this.router = router; base.onRobotStatusChange += new EventHandler(RouterPositionUpdate); }
/// <summary> /// Initializes a new instance of the <see cref="Lobby"/> class. /// </summary> /// <param name="name">Name of the new <see cref="Lobby"/>.</param> /// <param name="password">Password of the new <see cref="Lobby"/>.</param> /// <param name="connectionBroker"><see cref="ConnectionBroker"/> that this <see cref="Lobby"/> should get open connections from.</param> /// <param name="router">Router the new <see cref="Lobby"/> should connect to.</param> public Lobby(string name, string password, ConnectionBroker connectionBroker, Router.Router router) { this.Broadcaster = new Broadcaster(connectionBroker); this.Id = router.Register(this); this.Name = name; this.Password = password; this.Router = router; this.ResetInactivityTimer(); }