I suppose you are wondering how to use dependency injection container to 
manage services in gRPC.

As far as I know, gRPC request processing model and ASP.NET Core is 
completely different. gRPC requires binding service definitions when the 
server is starting. You need to pass an instance of the service type as a 
parameter to the binding method. So, the DI containers should not be used 
as storage containers for service types. In fact, gRPC service's method is 
closer to the asp.net core controller. 

So unless gRPC's request-handling model makes major changes, we can only 
write code to manage the service ourselves.

在 2015年8月1日星期六 UTC+8上午5:08:44,Rob Cecil写道:
>
> Been looking through this:
>  
>
https://github.com/grpc/grpc/tree/master/src/csharp
>
> And I wonder how people are actually managing/hosting their gRPC services?
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/92db167d-8939-45c6-9c41-8d54c831c873%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to