Пример #1
0
        public static void Configure(BehaviorGraph graph, RouteDefinitionResolver resolver)
        {
            //if no default route is specified, this one comes for free
            if (!resolver.HasDefaultRoute())
            {
                resolver.RegisterUrlPolicy(new DefaultRouteConventionBasedUrlPolicy(), true);
            }

            resolver.ApplyToAll(graph);
        }
        public static void Configure(BehaviorGraph graph, RouteDefinitionResolver resolver)
        {
            //if no default route is specified, this one comes for free
            if (!resolver.HasDefaultRoute())
            {
                resolver.RegisterUrlPolicy(new DefaultRouteConventionBasedUrlPolicy(), true);
            }

            resolver.ApplyToAll(graph);
        }