async Task <int> IWcfLinqService.ExecuteBatchAsync(string?configuration, string queryData) { try { return(await _linqService.ExecuteBatchAsync(configuration, queryData) .ConfigureAwait(Common.Configuration.ContinueOnCapturedContext));; } catch (Exception exception) when(_transferInternalExceptionToClient) { throw new FaultException(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())); } }