コード例 #1
0
        public BroadcastLocations(IHubContext <BusHub> hubContext, BusLocationsProvider busLocationsProvider, IRouteColourService routeColourService)
        {
            _hubContext           = hubContext;
            _busLocationsProvider = busLocationsProvider;
            _routeColourService   = routeColourService;
            _latest = new Dictionary <string, VehicleLocation>();

            // unsubscriber = _busLocationsProvider.Subscribe(this);
        }
コード例 #2
0
 public LiveLocationsController(IVehicleLocationsService vehicleLocationsService, IRouteColourService routeColourService)
 {
     _vehicleLocationsService = vehicleLocationsService;
     _routeColourService      = routeColourService;
 }