Esempio n. 1
0
        public async Task ConnectAsync()
        {
            _channel = await _channelFactory.CreateAsync();

            _client = new BenchmarkService.BenchmarkServiceClient(_channel);

            var options = new CallOptions(deadline: _deadline);

            _call = _client.StreamingCall(options);
        }
        public async Task ConnectAsync()
        {
            _channel = await _channelFactory.CreateAsync(_connectionId);

            _client = new BenchmarkService.BenchmarkServiceClient(_channel);

            var options = new CallOptions(deadline: _deadline, cancellationToken: _cts.Token);

            _call = _client.StreamingFromServer(new SimpleRequest {
                ResponseSize = 10
            }, options);
        }
Esempio n. 3
0
        public async Task ConnectAsync()
        {
            _channel = await _channelFactory.CreateAsync(_connectionId);

            _client = new BenchmarkService.BenchmarkServiceClient(_channel);
        }