public UmbracoFlareDomainService() { _umbracoLoggingService = ServiceFactory.GetUmbracoLoggingService(); _umbracoHelperWrapper = ServiceFactory.GetUmbracoHelperWrapper(); _cloudflareApiClient = ServiceFactory.GetCloudflareApiClient(); _domainService = ServiceFactory.GetDomainService(); }
/// <summary> /// Initializes a new instance of the <see cref="MediaService" /> class. /// </summary> /// <param name="umbracoHelperWrapper">The Umbraco helper wrapper.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="umbracoHelperWrapper" /> is <c>null</c>.</exception> public MediaService(IUmbracoHelperWrapper umbracoHelperWrapper) { if (umbracoHelperWrapper == null) { throw new ArgumentNullException(nameof(umbracoHelperWrapper)); } _umbracoHelperWrapper = umbracoHelperWrapper; }
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 GetPreValueAsStringAttribute() { _umbracoHelperWrapper = DependencyResolver.Current.GetService <IUmbracoHelperWrapper>(); }
public GetPreValueAsStringAttribute(IUmbracoHelperWrapper umbracoHelperWrapper) { _umbracoHelperWrapper = umbracoHelperWrapper; }