Beispiel #1
0
 public IoTHubMetricsSync(MessageFormatter messageFormatter, Scraper scraper, ModuleClient moduleClient)
 {
     this.messageFormatter = messageFormatter ?? throw new ArgumentNullException(nameof(messageFormatter));
     this.scraper          = scraper ?? throw new ArgumentNullException(nameof(scraper));
     this.moduleClient     = moduleClient;
 }
Beispiel #2
0
 public LogAnalyticsMetricsSync(MessageFormatter messageFormatter, Scraper scraper, AzureLogAnalytics logAnalytics)
 {
     this.messageFormatter = messageFormatter ?? throw new ArgumentNullException(nameof(messageFormatter));
     this.scraper          = scraper ?? throw new ArgumentNullException(nameof(scraper));
     this.logAnalytics     = logAnalytics;
 }