Ejemplo n.º 1
0
 public PointsController(
     ITrackingPointService pointService,
     IGeoFenceService geoFenceService,
     ILoggerFactory loggerFactory)
     : base(loggerFactory)
 {
     this.pointService    = pointService.ThrowIfNull(nameof(pointService));
     this.geoFenceService = geoFenceService.ThrowIfNull(nameof(geoFenceService));
 }
 public AssetsController(
     IAssetService assetService,
     ITrackingPointService pointService,
     ITripService tripService,
     ILoggerFactory loggerFactory)
     : base(loggerFactory)
 {
     this.assetService = assetService.ThrowIfNull(nameof(assetService));
     this.pointService = pointService.ThrowIfNull(nameof(pointService));
     this.tripService  = tripService.ThrowIfNull(nameof(tripService));
 }
 public TripController(
     ITripDetectorFactory tripFactory,
     IAssetService assetService,
     ITripService tripService,
     ITrackingPointService pointService,
     ILoggerFactory loggerFactory,
     IPipeline pipeline)
     : base(loggerFactory)
 {
     this.pipeline     = pipeline.ThrowIfNull(nameof(pipeline));
     this.tripFactory  = tripFactory.ThrowIfNull(nameof(tripFactory));
     this.assetService = assetService.ThrowIfNull(nameof(assetService));
     this.pointService = pointService.ThrowIfNull(nameof(pointService));
     this.tripService  = tripService.ThrowIfNull(nameof(tripService));
 }
 public DevicesController(
     ITrackingDeviceService deviceService,
     ITrackingPointService pointService,
     IGeoFenceService geoFenceService,
     ILoggerFactory loggerFactory,
     IConfiguration configuration,
     IHubContext <DynamicHub> deviceAdditionHubContext,
     ITokenService tokenService)
     : base(loggerFactory)
 {
     this.deviceService            = deviceService.ThrowIfNull(nameof(deviceService));
     this.pointService             = pointService.ThrowIfNull(nameof(pointService));
     this.geoFenceService          = geoFenceService.ThrowIfNull(nameof(geoFenceService));
     this.deviceAdditionHubContext = deviceAdditionHubContext;
     this.tokenService             = tokenService;
     this.configuration            = configuration;
 }