public StarWarsClient(IOperationExecutorPool executorPool) { _executor = executorPool.CreateExecutor(_clientName); _streamExecutor = executorPool.CreateStreamExecutor(_clientName); }
public StarWarsClient(IOperationExecutor executor, IOperationStreamExecutor streamExecutor) { _executor = executor ?? throw new ArgumentNullException(nameof(executor)); _streamExecutor = streamExecutor ?? throw new ArgumentNullException(nameof(streamExecutor)); }