コード例 #1
0
 public AgencyRouteParser(
     IRouteRepo routeRepo,
     ILogger <AgencyRouteParser> logger
     )
 {
     _routeRepo = routeRepo;
     _logger    = logger;
 }
コード例 #2
0
 public ScheduleManager(IUnitOfWork uow)
 {
     this.scheduleRepo    = uow.GetScheduleRepositry();
     this.FlightCostRepo  = uow.GetFlightCostRepository();
     this.FlightRepo      = uow.GetFlightRepository();
     this.CityRepo        = uow.GetCityRepository();
     this.RouteRepo       = uow.GetRouteRepository();
     this.TravelClassRepo = uow.GetTravelClassRepository();
 }
コード例 #3
0
 public BusCQHandler(
     IRouteRepo routeRepo,
     IDistributedCache cache,
     ILogger <BusCQHandler> logger
     )
 {
     _routeRepo = routeRepo;
     _cache     = cache;
     _logger    = logger;
 }
コード例 #4
0
 public PredictionsService(
     INextBusClient nextBusClient,
     IRouteRepo routeRepo,
     IBusStopRepo busStopRepo,
     IBusPredictionRepo busPredictionRepo,
     ILogger <PredictionsService> logger
     )
 {
     _nextBusClient     = nextBusClient;
     _routeRepo         = routeRepo;
     _busStopRepo       = busStopRepo;
     _busPredictionRepo = busPredictionRepo;
     _logger            = logger;
 }
コード例 #5
0
ファイル: DataSeeder.cs プロジェクト: TheDarkCode/BusVbot
 /// <inheritdoc />
 public DataSeeder(
     INextBusClient nextbusClient,
     IAgencyRepo agencyRepo,
     IRouteRepo routeRepo,
     IBusStopRepo busStopRepo,
     ILogger <DataSeeder> logger
     )
 {
     _nextbusClient = nextbusClient;
     _agencyRepo    = agencyRepo;
     _routeRepo     = routeRepo;
     _busStopRepo   = busStopRepo;
     _logger        = logger;
 }
コード例 #6
0
 public BusPredictionsHandler(
     IDistributedCache cache,
     IRouteRepo routeRepo,
     IPredictionsService predictionsService,
     IBusPredictionRepo predictionRepo,
     IRouteMessageFormatter routeMessageFormatter,
     ILogger <BusPredictionsHandler> logger
     )
 {
     _cache                 = cache;
     _routeRepo             = routeRepo;
     _predictionsService    = predictionsService;
     _predictionRepo        = predictionRepo;
     _routeMessageFormatter = routeMessageFormatter;
     _logger                = logger;
 }
コード例 #7
0
 public RouteMessageFormatter(
     IRouteRepo routeRepo
     )
 {
     _routeRepo = routeRepo;
 }
コード例 #8
0
 public RouteService(IRouteRepo routeRepo)
 {
     _routeRepo = routeRepo;
 }
コード例 #9
0
 public IRouteRepo GetRouteRepository()
 {
     repo = new RouteEFRepository();
     return(repo);
 }
コード例 #10
0
 public RouteManager(IUnitOfWork uow)
 {
     repoRoute = uow.GetRouteRepository();
     repoCity  = uow.GetCityRepository();
 }
コード例 #11
0
 public RouteService(IRouteRepo routeRepo)
 {
     this.routeRepo = routeRepo;
 }