コード例 #1
0
ファイル: RegistryTester.cs プロジェクト: jmlopez/Integrator
        public void SetUp()
        {
            var registry = new IntegratorTestRegistry();
            _graph = registry.BuildGraph();

            _commandGraph = registry.CommandRegistry.BuildGraph();
        }
コード例 #2
0
 public void Configure(CommandGraph graph)
 {
     graph
         .ChainsForExisting
         .Each(chain =>
                   {
                       graph.Observer.RecordCallStatus(chain.Placeholder(), "Adding FindEntityCommand directly before placeholder");
                       chain.Placeholder().AddBefore(new Wrapper(typeof(FindEntityCommand<>).MakeGenericType(chain.EntityType)));
                   });
 }
コード例 #3
0
ファイル: EntityMatcher.cs プロジェクト: RexMorgan/Commander
 public void BuildChains(TypePool pool, CommandGraph graph)
 {
     pool
         .TypesMatching(TypeFilters.Matches)
         .Each(t =>
                   {
                       graph.AddChainForNew(new CommandChain(t));
                       graph.AddChainForExisting(new CommandChain(t));
                   });
 }
コード例 #4
0
 public void Configure(CommandGraph graph)
 {
     graph
         .ChainsForNew
         .Each(chain =>
                   {
                       graph.Observer.RecordCallStatus(chain.Placeholder(), "Adding InsertEntityCommand directly after placeholder");
                       chain.Placeholder().AddAfter(
                           new Wrapper(typeof (InsertEntityCommand<>).MakeGenericType(chain.EntityType)));
                   });
 }
コード例 #5
0
 public static void Configure(this IEnumerable<IConfigurationAction> actions, CommandGraph graph)
 {
     actions.Each(x => x.Configure(graph));
 }
コード例 #6
0
 public void Configure(CommandGraph graph)
 {
     graph.ChainsForNew.Each(c => ModifyChain(c, graph.Observer));
     graph.ChainsForExisting.Each(c => ModifyChain(c, graph.Observer));
 }
コード例 #7
0
 public void Configure(CommandGraph graph)
 {
     var visitor = new CommandVisitor(graph.Observer, _reasonToVisit);
     _configureAction(visitor);
     graph.VisitCommands(visitor);
 }
コード例 #8
0
 public void Configure(CommandGraph graph)
 {
     _action(graph);
 }