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; }
public TransitLogic(TransitBaseComponent outer, IDirectionsService directionsService) { this.outer = outer; this.StopTransfers = new StopTransfers(directionsService); }
internal StopTransfers(IDirectionsService directionsService) { StopTransfers.directionsService = directionsService; }
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); }
public DirectionsController(IDirectionsService directionsService) { _directionsService = directionsService; }
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()); }