Exemplo n.º 1
0
 public ReportingService(
     ITripRepository tripRepository,
     ITrackingPointRepository trackingPointRepository,
     IGeoFenceUpdateRepository geoFenceUpdateRepository)
 {
     this.tripRepository           = tripRepository.ThrowIfNull(nameof(tripRepository));
     this.trackingPointRepository  = trackingPointRepository.ThrowIfNull(nameof(trackingPointRepository));
     this.geoFenceUpdateRepository = geoFenceUpdateRepository.ThrowIfNull(nameof(geoFenceUpdateRepository));
 }
 internal TimeBasedTripDetector(
     IConfigurationRepository configurationRepository,
     ILocationRepository locationRepository,
     ITripRepository tripRepository,
     ITrackingPointRepository trackingPointRepository,
     string bingMapsKey)
 {
     this.configurationRepository = configurationRepository;
     this.locationRepository      = locationRepository;
     this.tripRepository          = tripRepository;
     this.trackingPointRepository = trackingPointRepository;
     this.bingMapsKey             = bingMapsKey;
 }
Exemplo n.º 3
0
 public TripDetectorFactory(
     IConfigurationRepository configurationRepository,
     ITripRepository tripRepository,
     ITrackingPointRepository trackingPointRepository,
     ILocationRepository locationRepository,
     string bingMapsKey)
 {
     this.configurationRepository = configurationRepository;
     this.tripRepository          = tripRepository;
     this.trackingPointRepository = trackingPointRepository;
     this.locationRepository      = locationRepository;
     this.bingMapsKey             = bingMapsKey;
 }
        public PersistenceModule(
            ITrackingPointRepository trackingPointRepository,
            ITripRepository tripRepository,
            ILocationRepository locationRepository,
            string bingMapsKey)
        {
            BingMapsSDSToolkit.InternalSettings.ClientApi = "bingmapsfleettracker";

            this.trackingPointRepository =
                trackingPointRepository.ThrowIfNull(nameof(trackingPointRepository));

            this.tripRepository =
                tripRepository.ThrowIfNull(nameof(tripRepository));

            this.locationRepository =
                locationRepository.ThrowIfNull(nameof(locationRepository));

            this.bingMapsKey = bingMapsKey;
        }
Exemplo n.º 5
0
 public InstrumentationService(
     IAssetRepository assetRepository,
     IGeoFenceRepository geoFenceRepository,
     ILocationRepository locationRepository,
     ITrackingDeviceRepository trackingDeviceRepository,
     ITrackingPointRepository trackingPointRepository,
     IInstrumentationRepository instrumentationRepository,
     IConfigurationRepository configurationRepository,
     ILoggerFactory loggerFactory,
     IConfiguration configuration)
 {
     this.assetRepository           = assetRepository;
     this.geoFenceRepository        = geoFenceRepository;
     this.locationRepository        = locationRepository;
     this.trackingDeviceRepository  = trackingDeviceRepository;
     this.trackingPointRepository   = trackingPointRepository;
     this.instrumentationRepository = instrumentationRepository;
     this.configurationRepository   = configurationRepository;
     this.logger        = loggerFactory.CreateLogger <InstrumentationService>();
     this.configuration = configuration.ThrowIfNull(nameof(configuration));
 }
Exemplo n.º 6
0
 public PointLoaderModule(ITrackingPointRepository trackingPointRepository)
 {
     this.trackingPointRepository =
         trackingPointRepository.ThrowIfNull(nameof(trackingPointRepository));
 }