예제 #1
0
 public void AsyncUnary_StreamingOperationsNotAllowed()
 {
     asyncCall.UnaryCallAsync("request1");
     Assert.ThrowsAsync(typeof(InvalidOperationException),
                        async() => await asyncCall.ReadMessageAsync());
     Assert.Throws(typeof(InvalidOperationException),
                   () => asyncCall.SendMessageAsync("abc", new WriteFlags()));
 }
예제 #2
0
 public Task WriteAsync(TRequest message)
 {
     return(call.SendMessageAsync(message));
 }