I have a C# grpc service that works fine if I call it from a .Net Core 
Console app...However, I get the following error if I try to call it from a 
.Net Core Webapi Project [Status(StatusCode=Unavailable, Detail="Connect 
Failed")].  The difference between the console app and the webapi app is 
that I am not creating the channel in the main method...I am instead 
creating it elsewhere...I have tried several different ways:

   - In the startup class, and inject it as a dependency injection to a 
   repository class to use it.
   - Creating new instance in my repository class.
   - Creating a new instance in my webapi controller.

But, all those methods result in the same error of: 
[Status(StatusCode=Unavailable, Detail="Connect Failed")]

Does anyone have any insight on how to get over this hurdle?...The big 
picture is a webapi .net core aggregation rest service, that will be 
calling underlying grpc services. Is that just not possible?

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 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/875ded82-0afa-4ec8-ac85-ea25df00e3a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to