thomaswormald/grpc-browser

Support more ServiceContract method signatures

Gotcha7770 opened this issue · 3 comments

According to the last protobuf-net.Grpc documentation you can use following signatures for unary call with code first approach:

  • Task<MultiplyResult> MultiplyAsync()
  • Task<MultiplyResult> MultiplyAsync(MultiplyRequest request)
  • Task<MultiplyResult> MultiplyAsync(MultiplyRequest request, CallContext context)
  • Task<MultiplyResult> MultiplyAsync(MultiplyRequest request, CancellationToken cancellationToken)

First is for Empty request.
Last option could be useful

If you wish to allow optional cancellation in a general purpose way, and do not require access to headers/trailers/etc

It would be great to handle all theese options in grpc-browser. Now first and last are filtred at Index page.

Thanks for highlighting this, I will look to add support for these methods in the next version.

Hi @Gotcha7770, this should be resolved now as of version 1.3.3

Hi @thomaswormald, awsome! Thank you!