예제 #1
0
        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();
        }
예제 #2
0
 public DALService(IAirportDataService dataService, IConverterProvider converterProvider, ILogService logService)
 {
     this.dataService       = dataService;
     this.converterProvider = converterProvider;
     this.logService        = logService;
 }