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