Esempio n. 1
0
 public ConfigService(IKeyValueStore keyValueStore, IPushbulletClient pushbulletClient)
 {
     if (keyValueStore == null) throw new ArgumentNullException("keyValueStore");
     if (pushbulletClient == null) throw new ArgumentNullException("pushbulletClient");
     _keyValueStore = keyValueStore;
     _pushbulletClient = pushbulletClient;
 }
Esempio n. 2
0
        public PushbulletNotifier(ILogger<PushbulletNotifier> logger,
            IKeyValueStore keyValueStore,
            IPushbulletClient pushbulletClient)
        {
            if (logger == null) throw new ArgumentNullException("logger");
            if (keyValueStore == null) throw new ArgumentNullException("keyValueStore");
            if (pushbulletClient == null) throw new ArgumentNullException("pushbulletClient");

            _logger = logger;
            _keyValueStore = keyValueStore;
            _pushbulletClient = pushbulletClient;
        }
Esempio n. 3
0
 public ConfigService(IKeyValueStore keyValueStore, IPushbulletClient pushbulletClient)
 {
     if (keyValueStore == null)
     {
         throw new ArgumentNullException("keyValueStore");
     }
     if (pushbulletClient == null)
     {
         throw new ArgumentNullException("pushbulletClient");
     }
     _keyValueStore    = keyValueStore;
     _pushbulletClient = pushbulletClient;
 }
Esempio n. 4
0
        public PushbulletNotifier(ILogger <PushbulletNotifier> logger,
                                  IKeyValueStore keyValueStore,
                                  IPushbulletClient pushbulletClient)
        {
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }
            if (keyValueStore == null)
            {
                throw new ArgumentNullException("keyValueStore");
            }
            if (pushbulletClient == null)
            {
                throw new ArgumentNullException("pushbulletClient");
            }

            _logger           = logger;
            _keyValueStore    = keyValueStore;
            _pushbulletClient = pushbulletClient;
        }