示例#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);
 }
 public StepNamesProcessor(IMethodScanner methodScanner)
 {
     _methodScanner = methodScanner;
 }
示例#5
0
 public MessageProcessorFactory(IMethodScanner stepScanner, ISandbox sandbox)
 {
     _stepScanner = stepScanner;
     _sandbox     = sandbox;
     InitializeProcessors(stepScanner);
 }