Пример #1
0
 int IWcfLinqService.ExecuteNonQuery(string?configuration, string queryData)
 {
     try
     {
         return(_linqService.ExecuteNonQuery(configuration, queryData));
     }
     catch (Exception exception) when(_transferInternalExceptionToClient)
     {
         throw new FaultException(exception.ToString());
     }
 }
Пример #2
0
 GrpcInt IGrpcLinqService.ExecuteNonQuery(GrpcConfigurationQuery caq, CallContext context)
 {
     try
     {
         return(_linqService.ExecuteNonQuery(caq.Configuration, caq.QueryData));
     }
     catch (Exception exception) when(_transferInternalExceptionToClient)
     {
         throw new RpcException(new Status(StatusCode.Unknown, exception.ToString()));
     }
 }