diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-05-08 07:42:13 -0700 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-05-08 07:42:13 -0700 |
commit | 4d706b8dbc042fa758d63e4e3e18ef9ced5c499b (patch) | |
tree | ec8fc94e850985d8fe81cd9d4fc4f74d2cc83307 | |
parent | a5e15f446ebe44ff1cb12896e040c7f94503d5fd (diff) |
Port C# to new API
-rw-r--r-- | src/csharp/ext/grpc_csharp_ext.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/csharp/ext/grpc_csharp_ext.c b/src/csharp/ext/grpc_csharp_ext.c index a8cc1b29a4..6cefacece2 100644 --- a/src/csharp/ext/grpc_csharp_ext.c +++ b/src/csharp/ext/grpc_csharp_ext.c @@ -673,7 +673,9 @@ grpcsharp_call_start_serverside(grpc_call *call, callback_funcptr callback) { GPR_EXPORT grpc_server *GPR_CALLTYPE grpcsharp_server_create(grpc_completion_queue *cq, const grpc_channel_args *args) { - return grpc_server_create(cq, args); + grpc_server *server = grpc_server_create(args); + grpc_server_register_completion_queue(server, cq); + return server; } GPR_EXPORT gpr_int32 GPR_CALLTYPE @@ -706,7 +708,7 @@ grpcsharp_server_request_call(grpc_server *server, grpc_completion_queue *cq, return grpc_server_request_call( server, &(ctx->server_rpc_new.call), &(ctx->server_rpc_new.call_details), - &(ctx->server_rpc_new.request_metadata), cq, ctx); + &(ctx->server_rpc_new.request_metadata), cq, cq, ctx); } /* Security */ |