diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2016-06-22 12:47:14 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2016-06-22 17:18:47 -0700 |
commit | f41ebc3968ef06439d6d1468256ac5000940ea8f (patch) | |
tree | bd1b586d2e0991a3e92681bd9a66452d7101529e /examples/csharp | |
parent | edfebc909a7e4a2ada5e07d2012a227fb15d4064 (diff) |
remove occurences of NewClient factory method
Diffstat (limited to 'examples/csharp')
-rw-r--r-- | examples/csharp/helloworld/GreeterClient/Program.cs | 2 | ||||
-rw-r--r-- | examples/csharp/route_guide/RouteGuideClient/Program.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/csharp/helloworld/GreeterClient/Program.cs b/examples/csharp/helloworld/GreeterClient/Program.cs index 4393f2f3c2..444d473509 100644 --- a/examples/csharp/helloworld/GreeterClient/Program.cs +++ b/examples/csharp/helloworld/GreeterClient/Program.cs @@ -39,7 +39,7 @@ namespace GreeterClient { Channel channel = new Channel("127.0.0.1:50051", ChannelCredentials.Insecure); - var client = Greeter.NewClient(channel); + var client = new Greeter.GreeterClient(channel); String user = "you"; var reply = client.SayHello(new HelloRequest { Name = user }); diff --git a/examples/csharp/route_guide/RouteGuideClient/Program.cs b/examples/csharp/route_guide/RouteGuideClient/Program.cs index ee51fbe8e0..8a173dcc3b 100644 --- a/examples/csharp/route_guide/RouteGuideClient/Program.cs +++ b/examples/csharp/route_guide/RouteGuideClient/Program.cs @@ -231,7 +231,7 @@ namespace Routeguide static void Main(string[] args) { var channel = new Channel("127.0.0.1:50052", ChannelCredentials.Insecure); - var client = new RouteGuideClient(RouteGuide.NewClient(channel)); + var client = new RouteGuideClient(new RouteGuide.RouteGuideClient(channel)); // Looking for a valid feature client.GetFeature(409146138, -746188906); |