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