title: ASPNET CORE GRPC async interceptor method
body: <p>I am trying to asynchronously create a new <code>AsyncUnaryCall</code> instance that wraps the original interecepted one.</p>
  
  <p>the problem is the poor design of interceptor base class which does not allow async method interceptors. (as described here: <a href="https://github.com/grpc/grpc-dotnet/issues/694" rel="nofollow noreferrer">https://github.com/grpc/grpc-dotnet/issues/694</a>)</p>
  
  <p>to get the idea, here is what is want to achieve:</p>
  
  <pre><code>public override AsyncUnaryCall&lt;TResponse&gt; AsyncUnaryCall&lt;TRequest, TResponse&gt;(TRequest request, ClientInterceptorContext&lt;TRequest, TResponse&gt; context, AsyncUnaryCallContinuation&lt;TRequest, TResponse&gt; continuation)
  {
      var result = await MyAsyncStuff(); // if we can not await, what is the alternative?
  
      return new AsyncUnaryCall&lt;TResponse&gt;(paramters);
  }
  </code></pre>