예제 #1
0
 public DeviceController(TermoHubContext context, ILastValues lastValues, IAuthorizationService authorization)
 {
     this.context       = context;
     this.lastValues    = lastValues;
     this.authorization = authorization;
 }
예제 #2
0
 public ApiController(TermoHubContext context, ILastValues lastValues, IAlertReporter alertReporter)
 {
     this.context       = context;
     this.lastValues    = lastValues;
     this.alertReporter = alertReporter;
 }
예제 #3
0
 public AlertReporter(IOptions <ReporterOptions> options, TermoHubContext context, IEmailSender emailSender)
 {
     this.options     = options.Value;
     this.context     = context;
     this.emailSender = emailSender;
 }