mathserver listens on fixed port

pull/1347/head
Jan Tattermusch 10 years ago
parent ea67c96a99
commit 8cad507126
  1. 2
      src/csharp/Grpc.Examples.MathServer/MathServer.cs

@ -46,7 +46,7 @@ namespace math
Server server = new Server(); Server server = new Server();
server.AddServiceDefinition(MathGrpc.BindService(new MathServiceImpl())); server.AddServiceDefinition(MathGrpc.BindService(new MathServiceImpl()));
int port = server.AddListeningPort(host + ":0"); int port = server.AddListeningPort(host + ":23456");
server.Start(); server.Start();
Console.WriteLine("MathServer listening on port " + port); Console.WriteLine("MathServer listening on port " + port);

Loading…
Cancel
Save