Hi,

if you are using grpc-dotnet (as you should since Grpc.Core is in 
maintenance mode), there is some support for specifying gRPC service 
lifetime.
At the very least, you can configure the "Scoped" and "Singleton" lifetime 
for services in grpc-dotnet.
See e.g. 
here: 
https://learn.microsoft.com/en-us/aspnet/core/grpc/migration?view=aspnetcore-7.0#grpc-service-implementation-lifetime



On Monday, February 13, 2023 at 6:58:09 AM UTC+1 Manikandan V S wrote:

> Hi Team,
>
> We are doing the migration from WCF to gRPC. IN WCF we used 
> ServiceInstanceContext as percall, persession and Singleton. Based on these 
> we have our business logic. When we explored the similar implementation in 
> gRPC and could not find any. 
>
> Is anyone aware of any such implementation in gRPC.
>
> Thanks in Advance.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/ad88467c-11b5-421c-a1dc-213823f541cen%40googlegroups.com.

Reply via email to