GrpcString IGrpcLinqService.ExecuteReader(GrpcConfigurationQuery caq, CallContext context) { try { return(_linqService.ExecuteReader(caq.Configuration, caq.QueryData)); } catch (Exception exception) when(_transferInternalExceptionToClient) { throw new RpcException(new Status(StatusCode.Unknown, exception.ToString())); } }
async Task <GrpcInt> IGrpcLinqService.ExecuteBatchAsync(GrpcConfigurationQuery caq, CallContext context) { try { return(await _linqService.ExecuteBatchAsync(caq.Configuration, caq.QueryData) .ConfigureAwait(Common.Configuration.ContinueOnCapturedContext)); } catch (Exception exception) when(_transferInternalExceptionToClient) { throw new RpcException(new Status(StatusCode.Unknown, exception.ToString())); } }