/// <summary> /// Registers types of the custom routing. /// </summary> protected virtual void InitializeCustomRouting() { ObjectFactory.Container.RegisterType <IControllerActionInvoker, FeatherActionInvoker>(); ObjectFactory.Container.RegisterType <IRouteParamResolver, IntParamResolver>("int"); Task.Run(() => { this.RegisterTaxonomyRoutes(); }); CacheDependency.Subscribe(typeof(Taxonomy), this.OnTaxonomiesUpdated); string mvcControllerProxySettingsPropertyDescriptorName = string.Format("{0}.{1}", typeof(MvcWidgetProxy).FullName, "Settings"); ObjectFactory.Container.RegisterType <IControlPropertyDescriptor, ControllerSettingsPropertyDescriptor>(mvcControllerProxySettingsPropertyDescriptorName); FrontendManager.AttributeRouting.MapMvcAttributeRoutes(); }
static ImageOptimizationTask() { CacheDependency.Subscribe(typeof(ImageOptimizationConfig), ImageOptimizationTask.ConfigUpdated); }