示例#1
0
        public static IRunResult Run(IRunIntent runIntent, params IRunListener[] listeners)
        {
            var listener = CrossAppDomainRunListener.Create(listeners);

              var builder = new ContainerBuilder();
              var evaluationModule = new EvaluationModule(listener, runIntent.CreateSeparateAppDomains);
              builder.RegisterModule(evaluationModule);
              var container = builder.Build();

              var rootRunner = container.Resolve<IRootRunner>();
              return rootRunner.Run(runIntent);
        }
示例#2
0
        public static IRunResult Run(IRunIntent runIntent, params IRunListener[] listeners)
        {
            var listener = new CompositeRunListener(listeners);

            var builder          = new ContainerBuilder();
            var evaluationModule = new EvaluationModule(listener, runIntent.CreateSeparateAppDomains);

            builder.RegisterModule(evaluationModule);
            var container = builder.Build();

            var rootRunner = container.Resolve <IRootRunner>();

            return(rootRunner.Run(runIntent));
        }