asp.net web api - Calling RPC from Hosted WebAPI service both are on same machine -


i'm having web api , grpc service hosted on same machine, i'm trying call grpc service hosted web api, rpc service not getting called.

my server webapi hosted in amazon ec2 service(i think may issue not getting called).

if host web api in localmachine, can able call grpc service hosted on server.

grpc used - grpc.core version 0.13.1.0

code used call rpc service.

channel channel = new channel("server:50068", channelcredentials.insecure);         try         {             var client = new grpcclient<trequest, tresponse>(channel,"servicename", "methodname");             return await client.callasync(request);         }         catch (exception)         {             return errorresponsegenerator();         }                 {             await channel.shutdownasync();         } 


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -