[grpc-io] Re: [C#] Close / reject RPC from server side

2018-04-19 Thread Joseph Vaughan
Thanks Jan, I just got to test this out and this is exactly what I was after. On Friday, April 6, 2018 at 9:29:54 AM UTC+1, Jan Tattermusch wrote: > > In C# status server handlers (and also in interceptors on the serverside), > you can set the resulting status without throwing an exception by se

[grpc-io] Re: [C#] Close / reject RPC from server side

2018-04-06 Thread 'Jan Tattermusch' via grpc.io
In C# status server handlers (and also in interceptors on the serverside), you can set the resulting status without throwing an exception by setting ServerCallContext's "Status" property. https://github.com/grpc/grpc/blob/1c73e2c53ddecf3bd45f1c28d23a895fc7cd6e12/src/csharp/Grpc.Core/ServerCallCon