Ejemplo n.º 1
0
 async Task <string> IWcfLinqService.ExecuteReaderAsync(string?configuration, string queryData)
 {
     try
     {
         return(await _linqService.ExecuteReaderAsync(configuration, queryData)
                .ConfigureAwait(Common.Configuration.ContinueOnCapturedContext));;
     }
     catch (Exception exception) when(_transferInternalExceptionToClient)
     {
         throw new FaultException(exception.ToString());
     }
 }
Ejemplo n.º 2
0
 async Task <GrpcString> IGrpcLinqService.ExecuteReaderAsync(GrpcConfigurationQuery caq, CallContext context)
 {
     try
     {
         return(await _linqService.ExecuteReaderAsync(
                    caq.Configuration,
                    caq.QueryData,
                    context.ServerCallContext?.CancellationToken ?? CancellationToken.None
                    ).ConfigureAwait(Common.Configuration.ContinueOnCapturedContext));
     }
     catch (Exception exception) when(_transferInternalExceptionToClient)
     {
         throw new RpcException(new Status(StatusCode.Unknown, exception.ToString()));
     }
 }