public GRPCClient() { AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true); channel = GrpcChannel.ForAddress("http://localhost:6000"); client = new MeteoriteLandingsServiceClient(channel); }
public GrpcFrontendServiceImpl(string behost, int beport) { string channelhost = string.Format("{0}:{1}", behost, beport); channel = new Channel(channelhost, ChannelCredentials.Insecure); client = new MeteoriteLandingsServiceClient(channel); }
// public GRPCClient(string host ="localhost", int port =7000) public GRPCClient() { string host = Environment.GetEnvironmentVariable("BenchFEHost") ?? "localhost"; int port = Int32.Parse(Environment.GetEnvironmentVariable("BenchFEPort") ?? "6000"); string channelHost = string.Format("{0}:{1}", host, port); channel = new Channel(channelHost, ChannelCredentials.Insecure); client = new MeteoriteLandingsServiceClient(channel); Console.WriteLine("gRpc client initialized. Service will be called wtih {0}", channelHost); }
public GRPCClient() { channel = GrpcChannel.ForAddress("http://localhost:5006"); client = new MeteoriteLandingsServiceClient(channel); }
public GRPCClient() { channel = new Channel("localhost:6000", ChannelCredentials.Insecure); client = new MeteoriteLandingsServiceClient(channel); }