Ejemplo n.º 1
0
 public UnaryBenchmarkScenario(GrpcChannel[] channels, BenchReporter reporter, BenchmarkerConfig config)
 {
     _clients  = channels.Select(x => MagicOnionClient.Create <IBenchmarkService>(x)).ToArray();
     _reporter = reporter;
     _config   = config;
 }
 public CCoreHubLongRunBenchmarkScenario(Channel[] channels, BenchReporter reporter, BenchmarkerConfig config)
 {
     _clients  = channels.Select(x => StreamingHubClient.ConnectAsync <ILongRunBenchmarkHub, ILongRunBenchmarkHubReciever>(new DefaultCallInvoker(x), this).GetAwaiter().GetResult()).ToArray();
     _reporter = reporter;
     _config   = config;
 }
Ejemplo n.º 3
0
 public HubBenchmarkScenario(GrpcChannel[] channels, BenchReporter reporter, BenchmarkerConfig config)
 {
     _clients  = channels.Select(x => StreamingHubClient.ConnectAsync <IBenchmarkHub, IBenchmarkHubReciever>(x, this).GetAwaiter().GetResult()).ToArray();
     _reporter = reporter;
     _config   = config;
 }
Ejemplo n.º 4
0
 public ApiBenchmarkScenario(ApiClient[] clients, BenchReporter reporter, BenchmarkerConfig config)
 {
     _clients  = clients;
     _reporter = reporter;
     _config   = config;
 }
Ejemplo n.º 5
0
 public GrpcBenchmarkScenario(GrpcChannel[] channels, BenchReporter reporter, BenchmarkerConfig config)
 {
     _clients  = channels.Select(x => new Greeter.GreeterClient(x)).ToArray();
     _reporter = reporter;
     _config   = config;
 }