예제 #1
0
 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()));
     }
 }
예제 #2
0
 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()));
     }
 }