Esempio n. 1
0
        public async Task StartAsync(CancellationToken stoppingToken)
        {
            logService.Log("Timed Hosted Service running.");

            await gameFactory.InitializeGame();

            _timer = new Timer(SimulateGame, null, TimeSpan.Zero, TimeSpan.FromSeconds(SIMULATION_FREQUENCY));
        }