cyanfish / grpc-dotnet-namedpipes

Named pipe transport for gRPC in C#/.NET
Apache License 2.0
190 stars 48 forks source link

No docs on how to use with DI #58

Open betmix-matt opened 8 months ago

betmix-matt commented 8 months ago

As most people now use the IServicesCollection.AddGrpcClient Extension function for DI, it would be helpful to have docs on how to make this work with that. I couldn't figure it out.

cyanfish commented 8 months ago

AddGrpcClient isn't designed to work with this library. You can still use something generic like servicesCollection.AddSingleton(clientInstance) if you want.