aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Examples.MathServer/MathServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/csharp/Grpc.Examples.MathServer/MathServer.cs')
-rw-r--r--src/csharp/Grpc.Examples.MathServer/MathServer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/csharp/Grpc.Examples.MathServer/MathServer.cs b/src/csharp/Grpc.Examples.MathServer/MathServer.cs
index f440985112..468eefbe3e 100644
--- a/src/csharp/Grpc.Examples.MathServer/MathServer.cs
+++ b/src/csharp/Grpc.Examples.MathServer/MathServer.cs
@@ -44,7 +44,7 @@ namespace math
Server server = new Server();
server.AddServiceDefinition(Math.BindService(new MathServiceImpl()));
- int port = server.AddListeningPort(host, 23456);
+ int port = server.AddPort(host, 23456, ServerCredentials.Insecure);
server.Start();
Console.WriteLine("MathServer listening on port " + port);