public NavigationService(BehaviorGraph graph, IChainUrlResolver urlResolver, IMenuStateService stateService, IAssetUrls urls)
		{
			_urlResolver = urlResolver;
            _stateService = stateService;
            _urls = urls;
            _navigation = graph.Settings.Get<NavigationGraph>();
        }
 public NavigationService(BehaviorGraph graph, IChainUrlResolver urlResolver, IMenuStateService stateService, IAssetUrls urls)
 {
     _urlResolver  = urlResolver;
     _stateService = stateService;
     _urls         = urls;
     _navigation   = graph.Settings.Get <NavigationGraph>();
 }
        public void Configure(NavigationGraph graph)
        {
            var dependency = graph.AllNodes().FirstOrDefault(node => _matcher.Matches(node.Key));

            // code was like this for debugging
            if (dependency == null)
            {
                dependency = graph.MenuFor(_matcher.DefaultKey());
            }



            _strategy.Apply(dependency, _node);
        }
        public void Configure(NavigationGraph graph)
        {
            var dependency = graph.AllNodes().FirstOrDefault(node => _matcher.Matches(node.Key));
            
            // code was like this for debugging
            if (dependency == null)
            {
                dependency = graph.MenuFor(_matcher.DefaultKey());
            }

            

            _strategy.Apply(dependency, _node);
        }
 internal void Configure(NavigationGraph graph)
 {
     graph.AddRegistrations(_registrations);
 }
        public void Apply(NavigationGraph graph)
        {
            var node = _finder(graph);

            node.AllNodes().Where(x => x.BehaviorChain != null).Each(n => _alterations.Each(x => x(n)));
        }
 public void Configure(ActionCall action, MenuItemAttribute att, NavigationGraph graph)
 {
     var registrations = att.ToMenuRegistrations(action.ParentChain());
     graph.AddRegistrations(registrations);
 }
        public void Configure(ActionCall action, MenuItemAttribute att, NavigationGraph graph)
        {
            var registrations = att.ToMenuRegistrations(action.ParentChain());

            graph.AddRegistrations(registrations);
        }
 internal void Configure(NavigationGraph graph)
 {
     graph.AddRegistrations(_registrations);
 }