Exemplo n.º 1
0
 string IWcfLinqService.ExecuteReader(string?configuration, string queryData)
 {
     try
     {
         return(_linqService.ExecuteReader(configuration, queryData));
     }
     catch (Exception exception) when(_transferInternalExceptionToClient)
     {
         throw new FaultException(exception.ToString());
     }
 }
Exemplo n.º 2
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()));
     }
 }