aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.HealthCheck.Tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/csharp/Grpc.HealthCheck.Tests')
-rw-r--r--src/csharp/Grpc.HealthCheck.Tests/HealthClientServerTest.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/csharp/Grpc.HealthCheck.Tests/HealthClientServerTest.cs b/src/csharp/Grpc.HealthCheck.Tests/HealthClientServerTest.cs
index 9d89698a8f..50b1908fc8 100644
--- a/src/csharp/Grpc.HealthCheck.Tests/HealthClientServerTest.cs
+++ b/src/csharp/Grpc.HealthCheck.Tests/HealthClientServerTest.cs
@@ -57,8 +57,10 @@ namespace Grpc.HealthCheck.Tests
{
serviceImpl = new HealthServiceImpl();
- server = new Server();
- server.AddServiceDefinition(Grpc.Health.V1Alpha.Health.BindService(serviceImpl));
+ server = new Server()
+ {
+ Services = { Grpc.Health.V1Alpha.Health.BindService(serviceImpl) }
+ };
int port = server.AddPort(Host, Server.PickUnusedPort, ServerCredentials.Insecure);
server.Start();
channel = new Channel(Host, port, Credentials.Insecure);