@@ -53,7 +53,7 @@ public async Task AsyncClientStreamingCall_Success_HttpRequestMessagePopulated()
53
53
var invoker = HttpClientCallInvokerFactory . Create ( httpClient ) ;
54
54
55
55
// Act
56
- var call = invoker . AsyncClientStreamingCall < HelloRequest , HelloReply > ( ClientTestHelpers . ServiceMethod , string . Empty , new CallOptions ( ) ) ;
56
+ var call = invoker . AsyncClientStreamingCall ( ) ;
57
57
58
58
await call . RequestStream . CompleteAsync ( ) . DefaultTimeout ( ) ;
59
59
@@ -98,7 +98,7 @@ public async Task AsyncClientStreamingCall_Success_RequestContentSent()
98
98
var invoker = HttpClientCallInvokerFactory . Create ( handler , "http://localhost" ) ;
99
99
100
100
// Act
101
- var call = invoker . AsyncClientStreamingCall < HelloRequest , HelloReply > ( ClientTestHelpers . ServiceMethod , string . Empty , new CallOptions ( ) ) ;
101
+ var call = invoker . AsyncClientStreamingCall ( ) ;
102
102
var requestContentTask = await requestContentTcs . Task . DefaultTimeout ( ) ;
103
103
104
104
// Assert
@@ -149,7 +149,7 @@ public async Task ClientStreamWriter_WriteWhilePendingWrite_ErrorThrown()
149
149
var invoker = HttpClientCallInvokerFactory . Create ( httpClient ) ;
150
150
151
151
// Act
152
- var call = invoker . AsyncClientStreamingCall < HelloRequest , HelloReply > ( ClientTestHelpers . ServiceMethod , string . Empty , new CallOptions ( ) ) ;
152
+ var call = invoker . AsyncClientStreamingCall ( ) ;
153
153
154
154
// Assert
155
155
var writeTask1 = call . RequestStream . WriteAsync ( new HelloRequest { Name = "1" } ) ;
@@ -178,7 +178,7 @@ public async Task ClientStreamWriter_DisposeWhilePendingWrite_NoReadMessageError
178
178
var invoker = HttpClientCallInvokerFactory . Create ( httpClient , loggerFactory : loggerFactory ) ;
179
179
180
180
// Act
181
- var call = invoker . AsyncClientStreamingCall < HelloRequest , HelloReply > ( ClientTestHelpers . ServiceMethod , string . Empty , new CallOptions ( ) ) ;
181
+ var call = invoker . AsyncClientStreamingCall ( ) ;
182
182
183
183
// Assert
184
184
var writeTask1 = call . RequestStream . WriteAsync ( new HelloRequest { Name = "1" } ) ;
@@ -216,7 +216,7 @@ public async Task ClientStreamWriter_CompleteWhilePendingWrite_ErrorThrown()
216
216
var invoker = HttpClientCallInvokerFactory . Create ( httpClient ) ;
217
217
218
218
// Act
219
- var call = invoker . AsyncClientStreamingCall < HelloRequest , HelloReply > ( ClientTestHelpers . ServiceMethod , string . Empty , new CallOptions ( ) ) ;
219
+ var call = invoker . AsyncClientStreamingCall ( ) ;
220
220
221
221
// Assert
222
222
var writeTask1 = call . RequestStream . WriteAsync ( new HelloRequest { Name = "1" } ) ;
@@ -240,7 +240,7 @@ public async Task ClientStreamWriter_WriteWhileComplete_ErrorThrown()
240
240
var invoker = HttpClientCallInvokerFactory . Create ( httpClient ) ;
241
241
242
242
// Act
243
- var call = invoker . AsyncClientStreamingCall < HelloRequest , HelloReply > ( ClientTestHelpers . ServiceMethod , string . Empty , new CallOptions ( ) ) ;
243
+ var call = invoker . AsyncClientStreamingCall ( ) ;
244
244
await call . RequestStream . CompleteAsync ( ) . DefaultTimeout ( ) ;
245
245
var resultTask = call . ResponseAsync ;
246
246
@@ -273,7 +273,7 @@ public async Task ClientStreamWriter_WriteWithInvalidHttpStatus_ErrorThrown()
273
273
var invoker = HttpClientCallInvokerFactory . Create ( httpClient ) ;
274
274
275
275
// Act
276
- var call = invoker . AsyncClientStreamingCall < HelloRequest , HelloReply > ( ClientTestHelpers . ServiceMethod , string . Empty , new CallOptions ( ) ) ;
276
+ var call = invoker . AsyncClientStreamingCall ( ) ;
277
277
var writeException = await ExceptionAssert . ThrowsAsync < RpcException > ( ( ) => call . RequestStream . WriteAsync ( new HelloRequest { Name = "1" } ) ) . DefaultTimeout ( ) ;
278
278
var resultException = await ExceptionAssert . ThrowsAsync < RpcException > ( ( ) => call . ResponseAsync ) . DefaultTimeout ( ) ;
279
279
@@ -299,7 +299,7 @@ public async Task ClientStreamWriter_WriteAfterResponseHasFinished_ErrorThrown()
299
299
var invoker = HttpClientCallInvokerFactory . Create ( httpClient ) ;
300
300
301
301
// Act
302
- var call = invoker . AsyncClientStreamingCall < HelloRequest , HelloReply > ( ClientTestHelpers . ServiceMethod , string . Empty , new CallOptions ( ) ) ;
302
+ var call = invoker . AsyncClientStreamingCall ( ) ;
303
303
var ex = await ExceptionAssert . ThrowsAsync < RpcException > ( ( ) => call . RequestStream . WriteAsync ( new HelloRequest ( ) ) ) . DefaultTimeout ( ) ;
304
304
var result = await call . ResponseAsync . DefaultTimeout ( ) ;
305
305
@@ -329,7 +329,7 @@ public async Task AsyncClientStreamingCall_ErrorWhileWriting_StatusExceptionThro
329
329
// Act
330
330
331
331
// Client starts call
332
- var call = invoker . AsyncClientStreamingCall < HelloRequest , HelloReply > ( ClientTestHelpers . ServiceMethod , string . Empty , new CallOptions ( ) ) ;
332
+ var call = invoker . AsyncClientStreamingCall ( ) ;
333
333
// Client starts request stream write
334
334
var writeTask = call . RequestStream . WriteAsync ( new HelloRequest ( ) ) ;
335
335
@@ -422,7 +422,7 @@ public async Task ClientStreamWriter_CancelledBeforeCallStarts_ThrowsError()
422
422
var invoker = HttpClientCallInvokerFactory . Create ( httpClient ) ;
423
423
424
424
// Act
425
- var call = invoker . AsyncClientStreamingCall < HelloRequest , HelloReply > ( ClientTestHelpers . ServiceMethod , string . Empty , new CallOptions ( cancellationToken : new CancellationToken ( true ) ) ) ;
425
+ var call = invoker . AsyncClientStreamingCall ( new CallOptions ( cancellationToken : new CancellationToken ( true ) ) ) ;
426
426
427
427
var ex = await ExceptionAssert . ThrowsAsync < RpcException > ( ( ) => call . RequestStream . WriteAsync ( new HelloRequest ( ) ) ) . DefaultTimeout ( ) ;
428
428
@@ -442,7 +442,7 @@ public async Task ClientStreamWriter_CancelledBeforeCallStarts_ThrowOperationCan
442
442
var invoker = HttpClientCallInvokerFactory . Create ( httpClient , configure : o => o . ThrowOperationCanceledOnCancellation = true ) ;
443
443
444
444
// Act
445
- var call = invoker . AsyncClientStreamingCall < HelloRequest , HelloReply > ( ClientTestHelpers . ServiceMethod , string . Empty , new CallOptions ( cancellationToken : new CancellationToken ( true ) ) ) ;
445
+ var call = invoker . AsyncClientStreamingCall ( new CallOptions ( cancellationToken : new CancellationToken ( true ) ) ) ;
446
446
447
447
await ExceptionAssert . ThrowsAsync < OperationCanceledException > ( ( ) => call . RequestStream . WriteAsync ( new HelloRequest ( ) ) ) . DefaultTimeout ( ) ;
448
448
@@ -461,7 +461,7 @@ public async Task ClientStreamWriter_CallThrowsException_WriteAsyncThrowsError()
461
461
var invoker = HttpClientCallInvokerFactory . Create ( httpClient ) ;
462
462
463
463
// Act
464
- var call = invoker . AsyncClientStreamingCall < HelloRequest , HelloReply > ( ClientTestHelpers . ServiceMethod , string . Empty , new CallOptions ( ) ) ;
464
+ var call = invoker . AsyncClientStreamingCall ( ) ;
465
465
var writeException = await ExceptionAssert . ThrowsAsync < RpcException > ( ( ) => call . RequestStream . WriteAsync ( new HelloRequest ( ) ) ) . DefaultTimeout ( ) ;
466
466
var resultException = await ExceptionAssert . ThrowsAsync < RpcException > ( ( ) => call . ResponseAsync ) . DefaultTimeout ( ) ;
467
467
0 commit comments