public override async Task <TResponse> ClientStreamingServerHandler <TRequest, TResponse>(IAsyncStreamReader <TRequest> requestStream, ServerCallContext context, ClientStreamingServerMethod <TRequest, TResponse> continuation) { try { return(await continuation(requestStream, context)); } catch (Exception ex) { throw ExceptionHandlerHelper.BuildRpcException(ex, _defaultCode); } }
public override async Task DuplexStreamingServerHandler <TRequest, TResponse>(IAsyncStreamReader <TRequest> requestStream, IServerStreamWriter <TResponse> responseStream, ServerCallContext context, DuplexStreamingServerMethod <TRequest, TResponse> continuation) { try { await continuation(requestStream, responseStream, context); } catch (Exception ex) { throw ExceptionHandlerHelper.BuildRpcException(ex, _defaultCode); } }
public override async Task <TResponse> UnaryServerHandler <TRequest, TResponse>(TRequest request, ServerCallContext context, UnaryServerMethod <TRequest, TResponse> continuation) { try { return(await continuation(request, context)); } catch (Exception ex) { throw ExceptionHandlerHelper.BuildRpcException(ex, _defaultCode); } }