using NahidaImpact.Common.Data.Binout; using NahidaImpact.Common.Data.Excel; using NahidaImpact.Gameserver.Network; using Microsoft.Extensions.Hosting; namespace NahidaImpact.Gameserver; internal class GameServer : IHostedService { private readonly IGateway _gateway; public GameServer(IGateway gateway, ExcelTableCollection excelTables, BinDataCollection binDataCollection) { _ = excelTables; _ = binDataCollection; _gateway = gateway; } public async Task StartAsync(CancellationToken cancellationToken) { await _gateway.Start(); } public async Task StopAsync(CancellationToken cancellationToken) { await _gateway.Stop(); } }