public PathFinderSevice(IMemoryCache cache, IFlightsService flightService) { _flightService = flightService; _cache = cache; _cacheExpireTime = 10; _resultPath = new List <AirRoute>(); }
public FlightsController(ILoggerFactory logger, IFlightsService flightsService, IDestinationsFilter destinationsFilter) { _logger = logger.CreateLogger(GetType()); _flightsService = flightsService; _destinationsFilter = destinationsFilter; }
public FlightViewModel(INavigationService navigationService, IFlightsService service) : base(navigationService) { _model = new Flight(); _service = service; GoBackCommand = new RelayCommand(goBack); SaveItemCommand = new RelayCommand(SaveItem); MessengerInstance.Register <Flight>(this, entity => { _model = entity; }); }
public TestController(IPaymentsService paymentService, ISessionBagService sessionBag, IUserSessionService userSessionService, IMapper mapper, IPassengersService passengersService, IBookingService bookingService, IFlightsService flightService, IContactsService contactsService, IHttpContextAccessor httpContextAccessor, IQueueService queueService) { _paymentService = paymentService; _mapper = mapper; _flightsService = flightService; _contactsService = contactsService; _passengersService = passengersService; _bookingService = bookingService; _sessionBag = sessionBag; _userSessionService = userSessionService; _httpContextAccessor = httpContextAccessor; _queueService = queueService; }
public FlightsController( IDestinationsService destinationsService, IFlightsService flightsService) { // Guard clauses if (destinationsService is null) { throw new ArgumentNullException(nameof(destinationsService)); } if (flightsService is null) { throw new ArgumentNullException(nameof(flightsService)); } this.destinationsService = destinationsService; this.flightsService = flightsService; }
public FlightsViewModel(INavigationService navigationService, IFlightsService service) : base(navigationService) { Title = "Flights"; _service = service; AddNewItemCommand = new RelayCommand(AddNewItem); EditSelectedItemCommand = new RelayCommand(EditSelectedItem); DeleteSelectedItemCommand = new RelayCommand(DeleteSelectedItem); SearchCommand = new RelayCommand(SearchAsync); UpdateDataAsync().GetAwaiter(); MessengerInstance.Register <Flight>(this, entity => { if (entity != null) { UpdateDataAsync().GetAwaiter(); } }); }
public HomeController(IFlightsService flightsService) { _flightsService = flightsService; }
public ParagliderController(IParagliderService paragliderService, IFlightsService flightsService) { _paragliderService = paragliderService ?? throw new ArgumentNullException(nameof(paragliderService)); _flightsService = flightsService ?? throw new ArgumentNullException(nameof(flightsService)); }
public FlightsController(IBusPublisher busPublisher, IFlightsService flightsService, ITracer tracer) : base(busPublisher, tracer) { _flightsService = flightsService; }
public SiteController(ISitesService sitesService, IFlightsService flightsService) { _sitesService = sitesService ?? throw new ArgumentNullException(nameof(sitesService)); _flightService = flightsService ?? throw new ArgumentNullException(nameof(flightsService)); }
public FlightBookingsController(IReservationService reservationService, IFlightsService flightService) { this.reservationService = reservationService; this.flightService = flightService; }
public RouteController(IRouteFinder routeFinder, IFlightsService flightsService) { this.routeFinder = routeFinder ?? throw new ArgumentNullException(nameof(routeFinder)); this.flightsService = flightsService ?? throw new ArgumentNullException(nameof(flightsService));; }
public ReservationsController(IFlightsService flightsService, IAirportsService airportsService, IReservationsService reservationsService) { this.flightsService = flightsService; this.airportsService = airportsService; this.reservationsService = reservationsService; }
/// <summary> /// Constructor. /// </summary> /// <param name="flightsService">Flight service.</param> /// <param name="loggerFactory">Logger.</param> /// <param name="pathFinder">PathFinder service.</param> public PathFinderController(IFlightsService flightsService, ILoggerFactory loggerFactory, IPathFinder pathFinder) { _flightsService = flightsService; _pathFinder = pathFinder; _logger = loggerFactory.CreateLogger(typeof(PathFinderController)); }
public CreateFlightHandler(IFlightsService flightsService) { _flightsService = flightsService; }
public MainPageViewModel(IFlightsService p_flightsService) { _flightService = p_flightsService; Flights = new ObservableCollection <Flight>(_flightService.GetByDate(DateTime.Now)); }
public FlightsController(IFlightsService flightService) { _flightsService = flightService ?? throw new ArgumentNullException(nameof(flightService)); }
public FlightsController(IFlightsService flightsService, IAircraftsService aircraftsService, IAirportsService airportsService) { this.flightsService = flightsService; this.aircraftsService = aircraftsService; this.airportsService = airportsService; }
public RouteFinder(IFlightsService flightsService, RouteFinderConfig config) { this.flightsService = flightsService; this.config = config; }
public RouteController(IRouteFinder routeFinder, IFlightsService flightsService) { this.routeFinder = routeFinder; this.flightsService = flightsService; }
public FlightsController(IFlightsService flightsSrvice) { _flightsSrvice = flightsSrvice; }
public FlightController(IFlightsService flightService, IUserService userService, IReservationService reservationService) { this.flightService = flightService; this.userService = userService; this.reservationService = reservationService; }
public FlightController(ILogger <FlightController> logger, IFlightsService flightsService) : base(logger) => _flightsService = flightsService;
public FlightDataModelsController(ApplicationDbContext context, IFlightsService flightsService) { _context = context; this.flightsService = flightsService; }
public FlightsController(IFlightsService flightsService, ILogger <FlightsController> logger) { _logger = logger; _flightsService = flightsService; }
public TicketBoughtHandler(IFlightsService flightsService) { _flightsService = flightsService; }
public VacationBookingCoordinator() { _carsService = RestClient.For <ICarsService>("http://localhost:5001"); _hotelsService = RestClient.For <IHotelsService>("http://localhost:5003"); _flightsService = RestClient.For <IFlightsService>("http://localhost:5002"); }
public MainHealthCheck(IFlightsService flightsService) { _flightsService = flightsService; }