AwesomeSauce.Configuration.Views.IndexViewPolicy.Configure C# (CSharp) Метод

Configure() публичный Метод

public Configure ( FubuMVC.Core.View.Attachment.ViewBag bag, BehaviorGraph graph ) : void
bag FubuMVC.Core.View.Attachment.ViewBag
graph BehaviorGraph
Результат void
        public void Configure(ViewBag bag, BehaviorGraph graph)
        {
            FindChainsWithoutViews(graph, bag).Each(b =>
            {
                var output = b.ActionOutputType();
                var entityType = output.GetGenericArguments()[0];
                var handlerType = typeof(RestfulIndexHandler<>).MakeGenericType(entityType);
                var method = handlerType.GetMethod("DaisyChain");
                b.AddToEnd(new ActionCall(handlerType,method));

                var token = bag.ViewsFor(typeof (AwesomeIndexModel)).First();
                b.AddToEnd(token.ToBehavioralNode());
            });
        }