title: How to inject gRPC client to the singleton service?
body: <p><code>Grpc.Net.ClientFactory</code> package provides gRPC integration with the IHttpClientFactory and it comes with the convinient extension method used to register gRPC clients: <code>IServiceCollection.AddGrpcClient&lt;TClient&gt;()</code>.</p>
  <p>The problem is that this method registers <code>TClient</code> with the transient lifetime, which is, in turn, means that it's imposible to inject it into the singleton service. And looks like there is no possibility to configure it somehow (at least the AddGrpcClient source code has nothing on that).</p>
  <p>So the question is: how to correclty inject the gRPC client to the singleton service and benefit from the IHttpClientFactory integration at the same time? Should I inject some client factory instead?</p>