Пример #1
0
 public static Exception CreateHttpRequestException(HttpRequestException requestException, HttpRequestMessage request, HttpAbortReason abortReason)
 {
     var baseException = requestException.GetBaseException();
     return new CommunicationException(baseException.Message, baseException);
 }
Пример #2
0
 public static Exception CreateResponseHttpRequestException(HttpRequestException requestException, HttpResponseMessage response)
 {
     var baseException = requestException.GetBaseException();
     return new CommunicationException(baseException.Message, baseException);
 }