Example #1
0
 static internal Stream GetRequestStream(HttpWebRequest request)
 {
     try {
         return(request.GetRequestStream());
     } catch (WebException ex) {
         throw MailgunException.Wrap(ex);
     }
 }
Example #2
0
 static internal HttpWebResponse SendRequest(HttpWebRequest request)
 {
     try {
         return((HttpWebResponse)request.GetResponse());
     } catch (WebException ex) {
         throw MailgunException.Wrap(ex);
     }
 }