Ejemplo n.º 1
0
 string?IWcfLinqService.ExecuteScalar(string?configuration, string queryData)
 {
     try
     {
         return(_linqService.ExecuteScalar(configuration, queryData));
     }
     catch (Exception exception) when(_transferInternalExceptionToClient)
     {
         throw new FaultException(exception.ToString());
     }
 }
Ejemplo n.º 2
0
 GrpcString IGrpcLinqService.ExecuteScalar(GrpcConfigurationQuery caq, CallContext context)
 {
     try
     {
         return(_linqService.ExecuteScalar(caq.Configuration, caq.QueryData));
     }
     catch (Exception exception) when(_transferInternalExceptionToClient)
     {
         throw new RpcException(new Status(StatusCode.Unknown, exception.ToString()));
     }
 }