public BroadcastLocations(IHubContext <BusHub> hubContext, BusLocationsProvider busLocationsProvider, IRouteColourService routeColourService) { _hubContext = hubContext; _busLocationsProvider = busLocationsProvider; _routeColourService = routeColourService; _latest = new Dictionary <string, VehicleLocation>(); // unsubscriber = _busLocationsProvider.Subscribe(this); }
public LiveLocationsController(IVehicleLocationsService vehicleLocationsService, IRouteColourService routeColourService) { _vehicleLocationsService = vehicleLocationsService; _routeColourService = routeColourService; }