コード例 #1
0
        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();
        }
コード例 #2
0
 public void Handle(CommerceInstanceDeleted @event, CommerceInstance instance)
 {
     RecommendationEngineConfiguration.Dispose(@event.InstanceName);
 }
コード例 #3
0
 public void Handle(CommerceInstanceCreated @event, CommerceInstance instance)
 {
     RecommendationEngineConfiguration.Initialize(@event.InstanceName);
 }