Example #1
0
        private void Initialize(IDirectionsService directionsService, bool checkSameRoutes, double latitudeDegreeDistance, double longitudeDegreeDistance)
        {
            //if (Current != null)
            //    throw new InvalidOperationException("SingletonException: Only a single TransitDB object can be present.");
            Current    = this;
            UsingFiles = new Task(() => { });

            this.CheckSameRoutes         = checkSameRoutes;
            this.LatitudeDegreeDistance  = latitudeDegreeDistance;
            this.LongitudeDegreeDistance = longitudeDegreeDistance;

            if (DB.DatabaseExists)
            {
                //Init(reserveSize: preLoad);
                Logic = new TransitLogic(this, directionsService);
            }
        }
 public HomeController(IDirectionsService directionsService, IGPXService gpx, IThreadCache cache)
     : base(cache)
 {
     this.directionsService = directionsService;
     this.gpx = gpx;
 }
Example #3
0
 public TransitLogic(TransitBaseComponent outer, IDirectionsService directionsService)
 {
     this.outer         = outer;
     this.StopTransfers = new StopTransfers(directionsService);
 }
Example #4
0
 internal StopTransfers(IDirectionsService directionsService)
 {
     StopTransfers.directionsService = directionsService;
 }
Example #5
0
 public TransitBaseComponent(IDirectoryService root, IDirectionsService directionsService, bool preLoad, int bigTableLimit, bool checkSameRoutes, double latitudeDegreeDistance, double longitudeDegreeDistance)
 {
     DB = new TransitDB(root, bigTableLimit, preLoad);
     Initialize(directionsService, checkSameRoutes, latitudeDegreeDistance, longitudeDegreeDistance);
 }
Example #6
0
 public DirectionsController(IDirectionsService directionsService)
 {
     _directionsService = directionsService;
 }
Example #7
0
 public DirectionsController(IDirectionsService _service)
 {
     service = _service;
 }
 public DriverDeliveriesController(ApplicationDbContext context, IHttpContextAccessor contextAccessor, DeliveryStatusUpdateService statusUpdateService, IDirectionsService directionsService, INotificationService notService) : base(context, contextAccessor)
 {
     this.statusUpdateService = statusUpdateService;
     this.directionsService   = directionsService;
     this.notificationService = notService;
 }
 protected override void Given()
 {
     service = container.Create<DirectionsService>();
     container.Register<IRoadPathService>(new DesMoinesRoadService());
 }