diff options
author | Tim Emiola <tbetbetbe@users.noreply.github.com> | 2015-05-07 14:23:03 -0700 |
---|---|---|
committer | Tim Emiola <tbetbetbe@users.noreply.github.com> | 2015-05-07 14:23:03 -0700 |
commit | 57e289c103ffd8ca64bb95ad621de0643246f4ed (patch) | |
tree | 7913d7fe963701e3c2ac8bc3f2fc5f5bdfc081fb /src/csharp/Grpc.Examples/MathGrpc.cs | |
parent | eb697aa12a4fa153a84b58a7e82ea5684bad067b (diff) | |
parent | 03e82e2cdffbc0d4c19cea9d16e24d0dbf353376 (diff) |
Merge pull request #1504 from jtattermusch/csharp_api_fixes
Polishing the new C# API
Diffstat (limited to 'src/csharp/Grpc.Examples/MathGrpc.cs')
-rw-r--r-- | src/csharp/Grpc.Examples/MathGrpc.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/csharp/Grpc.Examples/MathGrpc.cs b/src/csharp/Grpc.Examples/MathGrpc.cs index 60408b9018..03f5c31cb7 100644 --- a/src/csharp/Grpc.Examples/MathGrpc.cs +++ b/src/csharp/Grpc.Examples/MathGrpc.cs @@ -133,13 +133,13 @@ namespace math // server-side interface public interface IMathService { - Task<DivReply> Div(DivArgs request); + Task<DivReply> Div(ServerCallContext context, DivArgs request); - Task Fib(FibArgs request, IServerStreamWriter<Num> responseStream); + Task Fib(ServerCallContext context, FibArgs request, IServerStreamWriter<Num> responseStream); - Task<Num> Sum(IAsyncStreamReader<Num> requestStream); + Task<Num> Sum(ServerCallContext context, IAsyncStreamReader<Num> requestStream); - Task DivMany(IAsyncStreamReader<DivArgs> requestStream, IServerStreamWriter<DivReply> responseStream); + Task DivMany(ServerCallContext context, IAsyncStreamReader<DivArgs> requestStream, IServerStreamWriter<DivReply> responseStream); } public static ServerServiceDefinition BindService(IMathService serviceImpl) |