summaryrefslogtreecommitdiffstats
path: root/SendGrid/SendGridMail/Transport/Web.cs
diff options
context:
space:
mode:
authorparoos <pa.roos@icloud.com>2014-05-09 19:26:42 +0200
committerparoos <pa.roos@icloud.com>2014-05-09 19:26:42 +0200
commita78d09d53a5dcfcd620d9e2ec5665389ebeb017e (patch)
tree21565f8eb635229a7c291c05280cbad21ca50e45 /SendGrid/SendGridMail/Transport/Web.cs
parent3806e9f9c7dd393dc8c7e13447b0f29a733a136f (diff)
downloadsendgrid-csharp-a78d09d53a5dcfcd620d9e2ec5665389ebeb017e.zip
sendgrid-csharp-a78d09d53a5dcfcd620d9e2ec5665389ebeb017e.tar.gz
sendgrid-csharp-a78d09d53a5dcfcd620d9e2ec5665389ebeb017e.tar.bz2
Factory removed from Web
Public constructor created (IoC friendly)
Diffstat (limited to 'SendGrid/SendGridMail/Transport/Web.cs')
-rw-r--r--SendGrid/SendGridMail/Transport/Web.cs13
1 files changed, 1 insertions, 12 deletions
diff --git a/SendGrid/SendGridMail/Transport/Web.cs b/SendGrid/SendGridMail/Transport/Web.cs
index f053575..3aaa62f 100644
--- a/SendGrid/SendGridMail/Transport/Web.cs
+++ b/SendGrid/SendGridMail/Transport/Web.cs
@@ -29,7 +29,7 @@ namespace SendGridMail
/// </summary>
/// <param name="credentials">SendGrid user parameters</param>
/// <param name="https">Use https?</param>
- internal Web(NetworkCredential credentials)
+ public Web(NetworkCredential credentials)
{
_credentials = credentials;
}
@@ -53,17 +53,6 @@ namespace SendGridMail
}
/// <summary>
- /// Factory method for Web transport of sendgrid messages
- /// </summary>
- /// <param name="credentials">SendGrid credentials for sending mail messages</param>
- /// <param name="https">Use https?</param>
- /// <returns>New instance of the transport mechanism</returns>
- public static Web GetInstance(NetworkCredential credentials)
- {
- return new Web(credentials);
- }
-
- /// <summary>
/// Asynchronously delivers a message over SendGrid's Web interface
/// </summary>
/// <param name="message"></param>