Ejemplo n.º 1
0
 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());
     }
 }
Ejemplo n.º 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()));
     }
 }