Esempio n. 1
0
        public GRPCClient()
        {
            AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);

            channel = GrpcChannel.ForAddress("http://localhost:6000");
            client  = new MeteoriteLandingsServiceClient(channel);
        }
Esempio n. 2
0
        public GrpcFrontendServiceImpl(string behost, int beport)
        {
            string channelhost = string.Format("{0}:{1}", behost, beport);

            channel = new Channel(channelhost, ChannelCredentials.Insecure);
            client  = new MeteoriteLandingsServiceClient(channel);
        }
Esempio n. 3
0
        // 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);
        }
Esempio n. 4
0
 public GRPCClient()
 {
     channel = GrpcChannel.ForAddress("http://localhost:5006");
     client  = new MeteoriteLandingsServiceClient(channel);
 }
Esempio n. 5
0
 public GRPCClient()
 {
     channel = new Channel("localhost:6000", ChannelCredentials.Insecure);
     client  = new MeteoriteLandingsServiceClient(channel);
 }