diff options
author | Tyler Bischel <tyler.bischel@sendgrid.com> | 2012-01-16 23:06:25 -0800 |
---|---|---|
committer | Tyler Bischel <tyler.bischel@sendgrid.com> | 2012-01-16 23:06:25 -0800 |
commit | 32bae16f1cdfd3ef1a2768b9a9a425aacdcbe186 (patch) | |
tree | 2c99849d5068709e5d2b05dfd5e6bd4c6d13ebaa /SendGrid/SendGridMail/Transport/REST.cs | |
parent | 9f24ab50b3e2658128d98bd006e1a65b305179a2 (diff) | |
parent | f5fd9054b23d5f8c4c915da36ad2eaa59f302918 (diff) | |
download | sendgrid-csharp-32bae16f1cdfd3ef1a2768b9a9a425aacdcbe186.zip sendgrid-csharp-32bae16f1cdfd3ef1a2768b9a9a425aacdcbe186.tar.gz sendgrid-csharp-32bae16f1cdfd3ef1a2768b9a9a425aacdcbe186.tar.bz2 |
merged and added some new tests
Diffstat (limited to 'SendGrid/SendGridMail/Transport/REST.cs')
-rwxr-xr-x | SendGrid/SendGridMail/Transport/REST.cs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/SendGrid/SendGridMail/Transport/REST.cs b/SendGrid/SendGridMail/Transport/REST.cs index 7b8c361..614e024 100755 --- a/SendGrid/SendGridMail/Transport/REST.cs +++ b/SendGrid/SendGridMail/Transport/REST.cs @@ -1,6 +1,5 @@ using System;
using System.Collections.Generic;
-using System.Collections.Specialized;
using System.IO;
using System.Linq;
using System.Net;
@@ -20,9 +19,7 @@ namespace SendGridMail.Transport public const String JsonFormat = "json";
public const String XmlFormat = "xml";
- private readonly List<KeyValuePair<String, String>> _query;
private readonly NetworkCredential _credentials;
- private readonly NameValueCollection _queryParameters;
private readonly String _restEndpoint;
private readonly String _format;
#endregion
@@ -69,7 +66,7 @@ namespace SendGridMail.Transport #region Support Methods
- private HttpClient InitializeTransport(out MultipartEntity multipartEntity, out HttpPost postMethod)
+ internal HttpClient InitializeTransport(out MultipartEntity multipartEntity, out HttpPost postMethod)
{
var client = new HttpClient();
postMethod = new HttpPost(new Uri(_restEndpoint));
@@ -118,7 +115,7 @@ namespace SendGridMail.Transport }
}
- private List<KeyValuePair<String, String>> FetchFormParams(ISendGrid message)
+ internal List<KeyValuePair<String, String>> FetchFormParams(ISendGrid message)
{
var result = new List<KeyValuePair<string, string>>()
{
@@ -152,7 +149,7 @@ namespace SendGridMail.Transport return result.Where(r => !String.IsNullOrEmpty(r.Value)).ToList();
}
- private List<KeyValuePair<String, FileInfo>> FetchFileBodies(ISendGrid message)
+ internal List<KeyValuePair<String, FileInfo>> FetchFileBodies(ISendGrid message)
{
if(message.Attachments == null)
return new List<KeyValuePair<string, FileInfo>>();
|