public Airport(IAircraftService aircraftService, ICrewingService crewingService, IFlightOperationsService flightOperationsService) { AircraftService = aircraftService; CrewingService = crewingService; FlightOperationsService = flightOperationsService; }
public static async Task <Flight> GetDelayedFlight(this IFlightOperationsService service, long targetId, CancellationToken ct = default(CancellationToken)) { TaskCompletionSource <Flight> tcs = new TaskCompletionSource <Flight>(); System.Timers.Timer t = new System.Timers.Timer(1500); t.Elapsed += (s, e) => { var result = service.GetFlightInfo(targetId); tcs.SetResult(result); }; return(await tcs.Task); }
public TicketsController(IMapper mapper, IFlightOperationsService service) { this.mapper = mapper; this.service = service; }
public TicketsController(IFlightOperationsService service) { this.service = service; }
public DeparturesController(IFlightOperationsService service) { this.service = service; }
public AiroportService(IAircraftService aircraftService, ICrewingService crewingService, IFlightOperationsService flightOperationsService) : base(aircraftService, crewingService, flightOperationsService) { ticketPriceDelta = ticketPriceBase / 100 * 48 + priceDeltaConnst; }
public DeparturesController(IMapper mapper, IFlightOperationsService service) { this.mapper = mapper; this.service = service; }
public AiroportService(IAircraftService aircraftService, ICrewingService crewingService, IFlightOperationsService flightOperationsService) : base(aircraftService, crewingService, flightOperationsService) { }