public OnCallDailyNotificationTask( IDictionary <string, string> jobArgsDictionary, ILoggerFactory loggerFactory) : base(jobArgsDictionary, loggerFactory) { var pagerDutyConfiguration = new PagerDutyConfiguration( jobArgsDictionary[_argumentNamePagerDutyAccountName], jobArgsDictionary[_argumentNamePagerDutyApiKey] ); _pagerDutyClient = new PagerDutyClient(pagerDutyConfiguration); }
public OnCallDailyNotificationTask( InitializationConfiguration configuration, Func <Task <SqlConnection> > openSupportRequestSqlConnectionAsync, ILoggerFactory loggerFactory) : base(configuration, openSupportRequestSqlConnectionAsync, loggerFactory) { var pagerDutyConfiguration = new PagerDutyConfiguration( configuration.PagerDutyAccountName, configuration.PagerDutyApiKey ); _pagerDutyClient = new PagerDutyClient(pagerDutyConfiguration); }