public CommandProcessorContext(TcpTestClient tcpTestClient, GrpcTestClient grpcTestClient, ClientApiTcpTestClient clientApiTestClient,
                                int timeout, ILogger log, ILogger statsLogger, bool outputCsv, ManualResetEventSlim doneEvent)
 {
     _tcpTestClient       = tcpTestClient;
     _grpcTestClient      = grpcTestClient;
     _clientApiTestClient = clientApiTestClient;
     Log         = log;
     StatsLogger = statsLogger;
     _doneEvent  = doneEvent;
     _timeout    = timeout;
     OutputCsv   = outputCsv;
 }
Exemplo n.º 2
0
        public Client(ClientOptions options, CancellationTokenSource cancellationTokenSource)
        {
            Options = options;

            var interactiveMode = options.Command.IsEmpty();

            InteractiveMode = options.Command.IsEmpty();

            _tcpTestClient       = new TcpTestClient(options, interactiveMode, Log);
            _grpcTestClient      = new GrpcTestClient(options, Log);
            _clientApiTestClient = new ClientApiTcpTestClient(options, Log);

            RegisterProcessors(cancellationTokenSource);
        }