Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var number = new Random().NextDouble() - 1.0;

            var channel = new GoogleGrpc.Core.Channel("localhost:50000", GoogleGrpc.Core.ChannelCredentials.Insecure);
            var client  = new Adder.AdderClient(channel);

            var numberNew = client.AddSimple(new Number {
                Value = number
            }).Value;

            channel.ShutdownAsync().Wait();

            Console.WriteLine($"Sent:      {number}");
            Console.WriteLine($"Returned:  {numberNew}");
        }
Ejemplo n.º 2
0
 public FooClient(global::Grpc.Core.Channel channel) : base(channel)
 {
 }
Ejemplo n.º 3
0
 public WorkflowServiceClient(global::Grpc.Core.Channel channel) : base(channel)
 {
 }
Ejemplo n.º 4
0
 public Channel Create()
 {
     return(_channel ?? (_channel = CreateChannel()));
 }
 public ExampleServiceClient(global::Grpc.Core.Channel channel) : base(channel)
 {
 }
Ejemplo n.º 6
0
 public UserServiceClient(global::Grpc.Core.Channel channel) : base(channel)
 {
 }