public UpdateClientService(IServerService serverService, IHubContext <AirportHub> hubContext, IConverterProvider converterProvider, IAirportDataService airportDataService) { this.serverService = serverService; serverService.ChangeInStateEvent += SendAirports; serverService.ChangeInStateEvent += SendLog; this.hubContext = hubContext; this.converterProvider = converterProvider; this.airportDataService = airportDataService; this.serverService.LoadFromDb(); this.serverService.AssignPlaneMakers(); }
public DALService(IAirportDataService dataService, IConverterProvider converterProvider, ILogService logService) { this.dataService = dataService; this.converterProvider = converterProvider; this.logService = logService; }