public StoreMessaggioPosizione_VehicleLock_Decorator(
     IStoreMessaggioPosizione decorated,
     IMongoCollection <VehicleLock> vehicleLocksCollection)
 {
     this.decorated = decorated ?? throw new ArgumentNullException(nameof(decorated));
     this.vehicleLocksCollection = vehicleLocksCollection ?? throw new ArgumentNullException(nameof(vehicleLocksCollection));
 }
コード例 #2
0
 public StoreMessaggioPosizione_DeleteInterpolatedMessages_Decorator(
     IStoreMessaggioPosizione decorated,
     IMongoCollection<MessaggioPosizione> messaggiPosizioneCollection
     )
 {
     this.decorated = decorated ?? throw new ArgumentNullException(nameof(decorated));
     this.messaggiPosizioneCollection = messaggiPosizioneCollection ?? throw new ArgumentNullException(nameof(messaggiPosizioneCollection));
     this.InterpolationThreshold_mt = 1;
 }
コード例 #3
0
 public StoreMessaggioPosizione_LogTooHighVelocities_Decorator(
     IStoreMessaggioPosizione decorated,
     IMongoCollection <MessaggioPosizione> messaggiPosizioneCollection
     )
 {
     this.decorated = decorated ?? throw new ArgumentNullException(nameof(decorated));
     this.messaggiPosizioneCollection = messaggiPosizioneCollection ?? throw new ArgumentNullException(nameof(messaggiPosizioneCollection));
     this.VelocityThreshold_Kmh       = 500;
 }
コード例 #4
0
        public MessaggiPosizioneController(IGetMessaggioPosizioneById getMessaggioPosizioneById,
                                           IStoreMessaggioPosizione storeMessaggioPosizione)
        {
            if (getMessaggioPosizioneById == null)
            {
                throw new ArgumentNullException(nameof(getMessaggioPosizioneById));
            }

            if (storeMessaggioPosizione == null)
            {
                throw new ArgumentNullException(nameof(storeMessaggioPosizione));
            }

            this.getMessaggioPosizioneById = getMessaggioPosizioneById;
            this.storeMessaggioPosizione   = storeMessaggioPosizione;
        }
コード例 #5
0
 public IpAuthChecker(IStoreMessaggioPosizione decorated,
                      IpNetworkChecker checker)
 {
     this.decorated = decorated ?? throw new ArgumentNullException(nameof(decorated));
     this.checker   = checker ?? throw new ArgumentNullException(nameof(checker));
 }