public QueryResultsAsEmailHandler(IConnectionManager connectionManager,
                                   IQueryManager queryManager,
                                   IOptionsSnapshot <SmtpSettingsProfiles> options)
 {
     this.connectionManager = connectionManager;
     this.queryManager      = queryManager;
     this.smtpProfiles      = options.Value;
 }
예제 #2
0
 public ExecuteRequestJob(ILogger <ExecuteRequestJob> logger,
                          IMediator mediator,
                          [KeyFilter(CubesConstants.Serializer_YAML)] ISerializer serializer,
                          ITypeResolver typeResolver,
                          IEmailDispatcher emailDispatcher,
                          IOptionsSnapshot <SmtpSettingsProfiles> options)
 {
     this.logger          = logger;
     this.mediator        = mediator;
     this.serializer      = serializer;
     this.typeResolver    = typeResolver;
     this.emailDispatcher = emailDispatcher;
     this.smtpProfiles    = options.Value;
 }
예제 #3
0
 public SmtpSettingsLookupProvider(IOptionsSnapshot <SmtpSettingsProfiles> optionsSnapshot)
 {
     _smtpSettings = optionsSnapshot.Value;
 }