Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strongly typed #211

Closed
wants to merge 58 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
ed82d9f
Add an overloaded RequestAsync to accept JArray and also refactor it …
Jericho Feb 1, 2016
eb5a119
Reformat
Jericho Feb 1, 2016
0b66b5c
Strongly typed GlobalStats
Jericho Feb 2, 2016
40fadc9
Strongly typed GlobalSuppressions
Jericho Feb 3, 2016
4659022
Strongly typed UnsubscribeGroups
Jericho Feb 3, 2016
602a9b4
Strongly typed 'Suppression'
Jericho Feb 4, 2016
fb10162
Add overload Client.Post method to accept a JArray
Jericho Feb 5, 2016
35880a9
Strongly typed Bounces
Jericho Feb 15, 2016
8e5f0d4
Strongly typed custom fields
Jericho Feb 15, 2016
b4e1f67
Display the underlying error message when exception occurs
Jericho Feb 15, 2016
5e6b31c
Added missing reference to system serialization
Jericho Feb 16, 2016
68da11f
Strongly typed Lists
Jericho Feb 16, 2016
3a01e79
Added strongly typed Custom Fields
Jericho Feb 16, 2016
ede9da5
Merge pull request #1 from sendgrid/master
Jericho Feb 17, 2016
be134ae
Add an overloaded RequestAsync to accept JArray and also refactor it …
Jericho Feb 1, 2016
7dcfd55
Reformat
Jericho Feb 1, 2016
b9ffdea
Strongly typed GlobalStats
Jericho Feb 2, 2016
017895a
Strongly typed GlobalSuppressions
Jericho Feb 3, 2016
356dc2f
Strongly typed UnsubscribeGroups
Jericho Feb 3, 2016
3a22e63
Strongly typed 'Suppression'
Jericho Feb 4, 2016
3310daa
Add overload Client.Post method to accept a JArray
Jericho Feb 5, 2016
b15c283
Strongly typed Bounces
Jericho Feb 15, 2016
431ab71
Strongly typed custom fields
Jericho Feb 15, 2016
de04c00
Display the underlying error message when exception occurs
Jericho Feb 15, 2016
0285525
Added missing reference to system serialization
Jericho Feb 16, 2016
8c18087
Strongly typed Lists
Jericho Feb 16, 2016
0f32188
Added strongly typed Custom Fields
Jericho Feb 16, 2016
adc84b8
Merge branch 'strongly_typed' of https://github.com/Jericho/sendgrid-…
Jericho Feb 17, 2016
7134d77
Strongly typed Segments
Jericho Feb 17, 2016
158d23b
Replace 'new JArray(...)' with JArray.FromObject(...)'
Jericho Feb 17, 2016
a41801b
Stringly typed Contacts
Jericho Feb 20, 2016
3e776ea
Strongly typed Templates and Template Versions
Jericho Feb 25, 2016
b4d66aa
Add cancellation token to async methods
Jericho Feb 29, 2016
b5ccd02
Configure the 'Example' project to be built
Jericho Mar 1, 2016
23964af
Add 3 missing files
Jericho Mar 1, 2016
8f3deb4
Merge branch 'strongly_typed' of https://github.com/Jericho/sendgrid-…
Jericho Mar 1, 2016
a59cd03
Get rid of Visual Studio warning: CS4014 Because this call is not awa…
Jericho Mar 1, 2016
d443120
Strongly typed Categories and User
Jericho Mar 1, 2016
595b03a
Merge branch 'strongly_typed' of https://github.com/Jericho/sendgrid-…
Jericho Mar 1, 2016
29dad31
Strongly typed Categories and User
Jericho Mar 1, 2016
9b3b281
Merge branch 'strongly_typed' of https://github.com/Jericho/sendgrid-…
Jericho Mar 1, 2016
b3426fb
ConfigureAwait(false)
Jericho Mar 4, 2016
60bc811
Strongly typed Api Keys
Jericho Mar 18, 2016
f853d70
Add .editorconfig file
Jericho Mar 18, 2016
edd4ca2
Revert changes I did not intend to commit
Jericho Mar 18, 2016
a015d29
Strongly typed campaigns
Jericho Mar 23, 2016
6e00d13
Fix unit tests
Jericho Mar 24, 2016
18d6856
Implement IDisposable interface
Jericho Apr 10, 2016
0448307
Get rid of the 'The method '...' does not need to use async/await" wa…
Jericho May 10, 2016
83cce39
Fix parameters in XML documentation that do not match the name of the…
Jericho May 10, 2016
6fe8609
Fix bug: Segments.GetRecipientsAsync ignores the segmentId
Jericho May 10, 2016
7eeeb4a
Remove redundant empty parentheses
Jericho May 10, 2016
4be377d
Convert fields to readonly
Jericho May 10, 2016
2461764
Remove redundant comma in array initializer
Jericho May 10, 2016
ec39dfa
Fix the SendGridMessage constructor that ignored the 'header' parameter
Jericho May 10, 2016
8d011fe
Merge branch 'strongly_typed' of https://github.com/Jericho/sendgrid-…
Jericho May 10, 2016
6876a8a
Restore Apikeys.cs which was overwritten in the last merge
Jericho May 10, 2016
3fa56fb
Misc
Jericho May 10, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Windows-style newlines with a newline ending every file
[*]
end_of_line = crlf
indent_style = space
insert_final_newline = true
tab_width = 4
3 changes: 3 additions & 0 deletions SendGrid/Example/Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
<DefineConstants>
</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<StartupObject>Example.Program</StartupObject>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
Expand Down
543 changes: 378 additions & 165 deletions SendGrid/Example/Program.cs

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions SendGrid/Example/WEBAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void SimpleHTMLEmail()
var transportInstance = new Web(new NetworkCredential(_username, _password));

//send the mail
transportInstance.DeliverAsync(message);
transportInstance.DeliverAsync(message).Wait();
}

/// <summary>
Expand Down Expand Up @@ -78,7 +78,7 @@ public void SimplePlaintextEmail()
var transportInstance = new Web(new NetworkCredential(_username, _password));

//send the mail
transportInstance.DeliverAsync(message);
transportInstance.DeliverAsync(message).Wait();
}

/// <summary>
Expand Down Expand Up @@ -113,7 +113,7 @@ public void EnableGravatarEmail()
message.EnableGravatar();

//send the mail
transportInstance.DeliverAsync(message);
transportInstance.DeliverAsync(message).Wait();
}

/// <summary>
Expand Down Expand Up @@ -147,7 +147,7 @@ public void EnableOpenTrackingEmail()
message.EnableOpenTracking();

//send the mail
transportInstance.DeliverAsync(message);
transportInstance.DeliverAsync(message).Wait();
}

/// <summary>
Expand Down Expand Up @@ -186,7 +186,7 @@ public void EnableClickTrackingEmail()
message.EnableClickTracking();

//send the mail
transportInstance.DeliverAsync(message);
transportInstance.DeliverAsync(message).Wait();
}

/// <summary>
Expand Down Expand Up @@ -223,7 +223,7 @@ public void EnableSpamCheckEmail()
message.EnableSpamCheck();

//send the mail
transportInstance.DeliverAsync(message);
transportInstance.DeliverAsync(message).Wait();
}

/// <summary>
Expand Down Expand Up @@ -262,7 +262,7 @@ public void EnableUnsubscribeEmail()
"Please click <% here %> to unsubscribe");

//send the mail
transportInstance.DeliverAsync(message);
transportInstance.DeliverAsync(message).Wait();
}

/// <summary>
Expand Down Expand Up @@ -300,7 +300,7 @@ public void EnableFooterEmail()
message.EnableFooter("PLAIN TEXT FOOTER", "<p color='blue'>HTML FOOTER TEXT</p>");

//send the mail
transportInstance.DeliverAsync(message);
transportInstance.DeliverAsync(message).Wait();
}

/// <summary>
Expand Down Expand Up @@ -339,7 +339,7 @@ public void EnableGoogleAnalytics()
message.EnableGoogleAnalytics("SendGridTest", "EMAIL", "Sendgrid", "ad-one", "My SG Campaign");

//send the mail
transportInstance.DeliverAsync(message);
transportInstance.DeliverAsync(message).Wait();
}

/// <summary>
Expand Down Expand Up @@ -378,7 +378,7 @@ public void EnableTemplateEmail()
message.EnableTemplate("<p>My Email Template <% body %> is awesome!</p>");

//send the mail
transportInstance.DeliverAsync(message);
transportInstance.DeliverAsync(message).Wait();
}

/// <summary>
Expand Down Expand Up @@ -417,7 +417,7 @@ public void EnableBypassListManagementEmail()
message.EnableBypassListManagement();

//send the mail
transportInstance.DeliverAsync(message);
transportInstance.DeliverAsync(message).Wait();
}


Expand Down Expand Up @@ -460,7 +460,7 @@ public void AddSubstitutionValues()
message.EnableBypassListManagement();

//send the mail
transportInstance.DeliverAsync(message);
transportInstance.DeliverAsync(message).Wait();
}

/// <summary>
Expand Down Expand Up @@ -500,7 +500,7 @@ public void AddUniqueIdentifiers()
message.EnableBypassListManagement();

//send the mail
transportInstance.DeliverAsync(message);
transportInstance.DeliverAsync(message).Wait();
}

/// <summary>
Expand Down Expand Up @@ -538,7 +538,7 @@ public void SetCategory()
message.EnableBypassListManagement();

//send the mail
transportInstance.DeliverAsync(message);
transportInstance.DeliverAsync(message).Wait();
}
}
}
1 change: 1 addition & 0 deletions SendGrid/SendGrid.sln
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Global
{F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.BuildNet45|x86.ActiveCfg = BuildNet45|Any CPU
{F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.Debug|Mixed Platforms.ActiveCfg = Release|Any CPU
{F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.Debug|Mixed Platforms.Build.0 = Release|Any CPU
{F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.Debug|x86.ActiveCfg = Debug|Any CPU
{F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
Expand Down
Loading