diff options
author | 2015-08-04 20:31:11 -0700 | |
---|---|---|
committer | 2015-08-04 20:31:11 -0700 | |
commit | 021df8a7f23c00216d1a544b34d4da2222054f0a (patch) | |
tree | 956b009c8bf4257988d3c353902499e9ef77f6df /src/csharp/Grpc.Examples.Tests | |
parent | dc64fb539980ad6117714dbd57d35c32ba369778 (diff) |
changed way service definitions are added to the server
Diffstat (limited to 'src/csharp/Grpc.Examples.Tests')
-rw-r--r-- | src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs | 6 |
1 files changed, 4 insertions, 2 deletions
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); |