public CloudflareManager( ICloudflareConfiguration configuration, IUmbracoFlareDomainManager domainManager, ICloudflareService cloudflareProvider, IProfilingLogger logger ) { this.configuration = configuration; this.domainManager = domainManager; this.cloudflareService = cloudflareProvider; this.logger = logger; }
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) { _configurationService = ServiceFactory.GetConfigurationService(); _cloudflareService = ServiceFactory.GetCloudflareService(); _umbracoFlareDomainService = ServiceFactory.GetUmbracoFlareDomainService(); _umbracoHelperWrapper = ServiceFactory.GetUmbracoHelperWrapper(); _imageCropperService = ServiceFactory.GetImageCropperService(); ContentService.Published += PurgeCloudflareCache; FileService.SavedScript += PurgeCloudflareCacheForScripts; FileService.SavedStylesheet += PurgeCloudflareCacheForStylesheets; MediaService.Saved += PurgeCloudflareCacheForMedia; }
public UmbracoFlareDomainManager( ICloudflareService cloudflareService, IContentService contentService, IDomainService domainService, IUmbracoContextFactory umbracoContextFactory, ICloudflareConfiguration cloudflareConfiguration ) { this.cloudflareService = cloudflareService; this.contentService = contentService; this.domainService = domainService; this.umbracoContextFactory = umbracoContextFactory; _cloudflareConfiguration = cloudflareConfiguration; }
public GkeCfSyncWorker( IHostApplicationLifetime hostApplicationLifetime, ILogger <GkeCfSyncWorker> logger, ICloudflareService cloudflare, IKubernetesService kubernetes) { _hostApplicationLifetime = hostApplicationLifetime; _logger = logger; _cloudflare = cloudflare; _kubernetes = kubernetes; _retryPolicy = new[] { TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(3), TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(10), }; }
public CloudflareUmbracoApiController() { _cloudflareService = ServiceFactory.GetCloudflareService(); _umbracoFlareDomainService = ServiceFactory.GetUmbracoFlareDomainService(); _configurationService = ServiceFactory.GetConfigurationService(); }
public CloudflareApiController(ICloudflareService cloudflareService) : base() { //Get the ApiKey and AccountEmail from the web.config settings. this.cloudflareService = cloudflareService; }