Beispiel #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);
        }
Beispiel #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);
     });
 }
        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);
            });
        }