public override void RegisterArea(AddinAreaRegistrationContext context) { context.MapRoute( name: AreaName + "_default", url: AreaName + "/{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }, namespaces: new[] { "Kooboo.Commerce.Recommendations.Controllers" } ); Kooboo.Web.Mvc.WebResourceLoader.ConfigurationManager.RegisterSection(AreaName, AreaHelpers.CombineAreaFilePhysicalPath(AreaName, "WebResources.config")); RecommendationEngineConfiguration.Configure(); }
public void Handle(CommerceInstanceDeleted @event, CommerceInstance instance) { RecommendationEngineConfiguration.Dispose(@event.InstanceName); }
public void Handle(CommerceInstanceCreated @event, CommerceInstance instance) { RecommendationEngineConfiguration.Initialize(@event.InstanceName); }