diff options
author | Brandon West <brawest@gmail.com> | 2013-10-24 14:00:06 -0600 |
---|---|---|
committer | Brandon West <brawest@gmail.com> | 2013-10-24 14:00:06 -0600 |
commit | 679da709062b30634f7c39fbd783b0e9922fec1a (patch) | |
tree | e8d4657818e72b552874e9b475453c8816b6076d | |
parent | 029659fbdca0f87416272e9b6b9630569685942a (diff) | |
download | sendgrid-csharp-679da709062b30634f7c39fbd783b0e9922fec1a.zip sendgrid-csharp-679da709062b30634f7c39fbd783b0e9922fec1a.tar.gz sendgrid-csharp-679da709062b30634f7c39fbd783b0e9922fec1a.tar.bz2 |
update example app to use https and DeliverAsync
-rw-r--r--[-rwxr-xr-x] | SendGrid/Example/Program.cs | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | SendGrid/Example/WEBAPI.cs | 2 | ||||
-rw-r--r-- | SendGrid/Example/app.config | 16 |
3 files changed, 16 insertions, 4 deletions
diff --git a/SendGrid/Example/Program.cs b/SendGrid/Example/Program.cs index 4c323cf..7ab96d4 100755..100644 --- a/SendGrid/Example/Program.cs +++ b/SendGrid/Example/Program.cs @@ -25,7 +25,7 @@ namespace Example var transportWeb = Web.GetInstance(credentials);
// Send the email.
- transportWeb.Deliver(myMessage);
+ transportWeb.DeliverAsync(myMessage);
Console.WriteLine("Done!");
Console.ReadLine();
diff --git a/SendGrid/Example/WEBAPI.cs b/SendGrid/Example/WEBAPI.cs index fd18605..d3f8d4a 100755..100644 --- a/SendGrid/Example/WEBAPI.cs +++ b/SendGrid/Example/WEBAPI.cs @@ -255,7 +255,7 @@ namespace Example message.Subject = "Hello World Unsubscribe Test";
//create an instance of the Web transport mechanism
- var transportInstance = Web.GetInstance(new NetworkCredential(_username, _password), true);
+ var transportInstance = Web.GetInstance(new NetworkCredential(_username, _password));
//enable spamcheck
//or optionally, you can specify 'replace' instead of the text and html in order to
diff --git a/SendGrid/Example/app.config b/SendGrid/Example/app.config index e212038..91eaa85 100644 --- a/SendGrid/Example/app.config +++ b/SendGrid/Example/app.config @@ -1,4 +1,16 @@ -<?xml version="1.0"?>
+<?xml version="1.0" encoding="utf-8"?>
<configuration>
-<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
+<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /></startup>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-2.5.19.0" newVersion="2.5.19.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-2.5.19.0" newVersion="2.5.19.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
</configuration>
|