コード例 #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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        public async Task ConnectAsync()
        {
            _channel = await _channelFactory.CreateAsync(_connectionId);

            _client = new BenchmarkService.BenchmarkServiceClient(_channel);
        }