Пример #1
0
        private static void MapLocatorRoute(IResourceLocator locator)
        {
            var _navigationMeta = locator.ResourceMeta as ControllerMeta;

            if (_navigationMeta == null)
            {
                return;
            }

            // and we map it to the route, note_ we don't check for any pre-existing routes etc..
            MapRoute(locator.ResourceName, new Route(_navigationMeta.Url, (IRouteHandler)locator.GetResourceInstance()));
        }