Esempio n. 1
0
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
                );

            StoreInitializer.Initialize(new StoreContext());
        }
Esempio n. 2
0
        protected override async Task OnAfterRenderAsync(bool firstRender)
        {
            if (firstRender)
            {
                // TODO: Move to OnInit?
                await StoreInitializer.Initialize();

                if (UseDevTools)
                {
                    await StoreInitializer.InitializeDevTools();
                }
            }
        }