Beispiel #1
0
 LinqServiceInfo IWcfLinqService.GetInfo(string?configuration)
 {
     try
     {
         return(_linqService.GetInfo(configuration));
     }
     catch (Exception exception) when(_transferInternalExceptionToClient)
     {
         throw new FaultException(exception.ToString());
     }
 }
Beispiel #2
0
 LinqServiceInfo IGrpcLinqService.GetInfo(GrpcConfiguration configuration, CallContext context)
 {
     try
     {
         return(_linqService.GetInfo(configuration.Configuration));
     }
     catch (Exception exception) when(_transferInternalExceptionToClient)
     {
         throw new RpcException(new Status(StatusCode.Unknown, exception.ToString()));
     }
 }