public Listener(string ip, int port, GameArena Arena, CancellationToken cancellationToken = default) { this.Arena = Arena; IPAddress localAddr = IPAddress.Parse(ip); server = new TcpListener(localAddr, port); server.Start(); Task.Run(StartListener, cancellationToken); }
public void Setup() { this.UserRepo = new UserRepository(); this.Arena = new GameArena(this.options.ArenaId); }
protected Application(AppOptions options) { this.UserRepo = null; this.options = options; this.Arena = null; }