コード例 #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);
        }
コード例 #2
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);
        }