Example #1
0
            public void Configure(BlitzOptions options)
            {
                if (!_configuration.GetChildren().Any(it => it.Key == CronjobsOptions.Key))
                {
                    throw new ApplicationException($"Missing configuration keyed '{CronjobsOptions.Key}'");
                }

                _configuration.Bind(CronjobsOptions.Key, options);
            }
 public CronjobBroadcasterService(
     IOptions <BlitzOptions> options,
     ICronjobBroadcaster broadcaster,
     ILogger <CronjobBroadcasterService> logger)
 {
     _options     = options.Value;
     _broadcaster = broadcaster;
     _logger      = logger;
 }
Example #3
0
 public CronjobRegistrationBroadcaster(IHostEnvironment environment,
                                       ICronjobApiClient cronjobApi,
                                       IVersionProvider versionProvider,
                                       ILogger <CronjobRegistrationBroadcaster> logger,
                                       ICronjobWebhookProvider cronjobWebhookProvider,
                                       IOptions <BlitzOptions> options)
 {
     _environment            = environment;
     _cronjobApi             = cronjobApi;
     _versionProvider        = versionProvider;
     _logger                 = logger;
     _cronjobWebhookProvider = cronjobWebhookProvider;
     _options                = options.Value;
 }