Exemple #1
0
        /// <summary>
        /// Build the route. Add different logic here if needed.
        /// </summary>
        /// <param name="routeBuilder"></param>
        private static void BuildRoutes(IRouterBuilder routeBuilder)
        {
            var convention = routeBuilder.GetTemplateConvention("{vm}");

            typeof(RoutingConfiguration).GetTypesFromSameAssembly()
            .InNamespace("Ornette.UI.ViewModel.Pages")
            .Register(convention);
        }
Exemple #2
0
        private static void BuildRoutes(IRouterBuilder routeBuilder)
        {
            var convention = routeBuilder.GetTemplateConvention("{vm}");

            typeof(RoutingConfiguration).GetTypesFromSameAssembly()
            .InNamespace("Neutronium.Vue.SPA.ViewModel")
            .Register(convention);
        }
        private static void BuildRoutes(IRouterBuilder routeBuilder)
        {
            var convention = routeBuilder.GetTemplateConvention("{vm}");

            typeof(RoutingConfiguration).GetTypesFromSameAssembly()
            .InNamespace("Neutronium.ReactiveTrader.Client.ViewModel.Pages")
            .Register(convention);
            routeBuilder.Register <IShellViewModel>("main");
            routeBuilder.Register <IShellViewModel>("blot");
        }