From 021df8a7f23c00216d1a544b34d4da2222054f0a Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Tue, 4 Aug 2015 20:31:11 -0700 Subject: changed way service definitions are added to the server --- src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/csharp/Grpc.Examples.Tests') diff --git a/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs b/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs index 242d29a9a5..080e733523 100644 --- a/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs +++ b/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs @@ -54,8 +54,10 @@ namespace math.Tests [TestFixtureSetUp] public void Init() { - server = new Server(); - server.AddServiceDefinition(Math.BindService(new MathServiceImpl())); + server = new Server() + { + Services = { Math.BindService(new MathServiceImpl()) } + }; int port = server.AddPort(host, Server.PickUnusedPort, ServerCredentials.Insecure); server.Start(); channel = new Channel(host, port, Credentials.Insecure); -- cgit v1.2.3