예제 #1
0
        private void InitializeProcessors(IMethodScanner stepScanner)
        {
            var stepRegistry = stepScanner.GetStepRegistry();
            var hookRegistry = stepScanner.GetHookRegistry();

            _messageProcessorsDictionary = InitializeMessageHandlers(stepRegistry, hookRegistry);
        }
예제 #2
0
 public MessageProcessorFactory(ISandbox sandbox)
 {
     _sandbox = sandbox;
     using (var apiConnection = new GaugeApiConnection(new TcpClientWrapper(Utils.GaugeApiPort)))
     {
         _stepScanner = new MethodScanner(apiConnection, _sandbox);
         InitializeProcessors(_stepScanner);
     }
 }
 public MessageProcessorFactory(IMethodScanner stepScanner, ISandbox sandbox, IAssemblyLoader assemblyLoader, IActivatorWrapper activatorWrapper, ITableFormatter tableFormatter, IReflectionWrapper reflectionWrapper)
 {
     _tableFormatter    = tableFormatter;
     _reflectionWrapper = reflectionWrapper;
     _assemblyLoader    = assemblyLoader;
     _activatorWrapper  = activatorWrapper;
     _stepScanner       = stepScanner;
     _sandbox           = sandbox;
     InitializeProcessors(stepScanner);
 }
예제 #4
0
 public StepNamesProcessor(IMethodScanner methodScanner)
 {
     _methodScanner = methodScanner;
 }
예제 #5
0
 public MessageProcessorFactory(IMethodScanner stepScanner, ISandbox sandbox)
 {
     _stepScanner = stepScanner;
     _sandbox     = sandbox;
     InitializeProcessors(stepScanner);
 }