コード例 #1
0
        public HotaService(ILogger <HotaService> hotaServiceLogger, ILogger <HotaLobby> hotaLobbyLogger, ILogger <HotaLobbyServer> hotaLobbyServerLogger, IOptions <HotaConfiguration> hotaConfiguration)
        {
            this.HotaServiceLogger = hotaServiceLogger;

            var hotaLobby = new HotaLobby(hotaLobbyLogger);

            this.HotaLobbyServer = new HotaLobbyServer(hotaLobbyServerLogger, hotaLobby, hotaConfiguration.Value);
        }
コード例 #2
0
 public PlayersController(HotaService hotaService)
 {
     this.HotaLobby = hotaService.HotaLobbyServer;
 }