コード例 #1
0
        //TODO -- Really similar to BehaviorMatcher. Can we reuse?
        private void registerBehavior(ActionCall call)
        {
            var chain = new BehaviorChain();

            chain.AddToEnd(call);
            _graph.AddChain(chain);
        }
コード例 #2
0
 public void Configure(BehaviorGraph graph)
 {
     _sources
     .SelectMany(src => src.FindActions(_types))
     .Each(call =>
     {
         var chain = new BehaviorChain();
         chain.AddToEnd(call);
         graph.AddChain(chain);
     });
 }
コード例 #3
0
        public void Configure(BehaviorGraph graph)
        {
            var actions = _source.FindActions(graph.ApplicationAssembly);

            var existing = graph.Actions().ToList();

            actions.Where(x => !existing.Contains(x)).Each(call => {
                var chain = new BehaviorChain();
                chain.AddToEnd(call);
                graph.AddChain(chain);
            });
        }