Skip to content

Commit 45b79a5

Browse files
Reverted to version 9.5.2, per the conversation here: #501
1 parent 5dde5ea commit 45b79a5

File tree

12 files changed

+28
-574
lines changed

12 files changed

+28
-574
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [9.7.0] - 2017-08-03
5+
## Added
6+
- Reverted to version 9.5.2, per the conversation here: #501
7+
- Polly (which implemented Transient Fault Handling) was removed in favor of a dependency free solution.
8+
- Transient Fault Handling with Polly still exists in version 9.6.1, if needed
9+
410
## [9.6.1] - 2017-08-03
511
## Fixed
612
- Fix for issue #501: Could not load file or assembly 'Polly, Version=5.2.0.0, Culture=neutral, PublicKeyToken=null'

USE_CASES.md

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ This documentation provides examples for specific use cases. Please [open an iss
88
* [Email - Send a Single Email to a Single Recipient](#singleemailsinglerecipient)
99
* [Email - Send Multiple Emails to Multiple Recipients](#multipleemailsmultiplerecipients)
1010
* [Email - Transactional Templates](#transactional_templates)
11-
* [Transient Fault Handling](#transient_faults)
1211

1312
<a name="attachments"></a>
1413
# Attachments
@@ -581,57 +580,3 @@ namespace Example
581580
}
582581
}
583582
```
584-
585-
586-
<a name="transient_faults"></a>
587-
# Transient Fault Handling
588-
589-
The SendGridClient provides functionality for handling transient errors that might occur when sending an HttpRequest. The library makes use of the [Polly](https://github.com/App-vNext/Polly "Polly") package to attempt to recover from failures.
590-
591-
By default, retry behaviour is off, you must explicitly enable it by setting the retry count to a value greater than zero. To set the retry count, you must use the SendGridClient construct that takes a **SendGridClientOptions** object, allowing you to configure the **ReliabilitySettings**
592-
593-
### RetryCount
594-
595-
The amount of times to retry the operation before reporting an exception to the caller. This is in addition to the initial attempt, so setting a value of 1 would result in 2 attempts - the initial attempt and the retry. Defaults to zero, so retry behaviour is not enabled. The maximum amount of retries permitted is 5.
596-
597-
### RetryInterval
598-
599-
The policy implemented is a 'wait and retry'. The RetryInterval setting defines the amount of time to wait between operations that fail before attmepting a retry. By default, this is set to 1 second - the maximum amount of time allowed is 30 seconds.
600-
601-
## Examples
602-
603-
In this example, we are setting RetryCount to 1, with an interval between attempts of 5 seconds. This means that if the inital attempt to send mail fails, then it will wait 5 seconds then try again a single time.
604-
605-
```csharp
606-
607-
var options = new SendGridClientOptions
608-
{
609-
ApiKey = "Your-Api-Key",
610-
ReliabilitySettings = {RetryCount = 1, RetryInterval = TimeSpan.FromSeconds(5)}
611-
};
612-
613-
var client = new SendGridClient(options);
614-
615-
```
616-
617-
The SendGridClientOptions object defines all the settings that can be set for the client, e.g.
618-
619-
```csharp
620-
621-
var options = new SendGridClientOptions
622-
{
623-
ApiKey = "Your-Api-Key",
624-
ReliabilitySettings = {RetryCount = 1, RetryInterval = TimeSpan.FromSeconds(5)},
625-
Host = "Your-Host",
626-
UrlPath = "Url-Path",
627-
Version = "3",
628-
RequestHeaders = new Dictionary<string, string>() {{"header-key", "header-value"}}
629-
};
630-
631-
var client = new SendGridClient(options);
632-
633-
```
634-
Use the SendGridClientOptions object to set ReliabilitySettings when you want to introduce an element of resiliancy against transient faults into your solution.
635-
636-
637-

nuspec/Sendgrid.9.6.1.nuspec renamed to nuspec/Sendgrid.9.7.0.nuspec

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
33
<metadata>
44
<id>Sendgrid</id>
5-
<version>9.6.1</version>
5+
<version>9.7.0</version>
66
<title>SendGrid</title>
77
<authors>Elmer Thomas,SendGrid DX Team</authors>
88
<licenseUrl>https://github.com/sendgrid/sendgrid-csharp/blob/master/MIT.LICENSE</licenseUrl>
@@ -11,31 +11,30 @@
1111
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1212
<description>C# client library and examples for using SendGrid API's to send mail and access Web API v3 endpoints with .NET Standard 1.3 and .NET Core support. Github repo located at : https://github.com/sendgrid/sendgrid-csharp</description>
1313
<summary>C# client library and examples for using SendGrid API's to send mail and access Web API v3 endpoints with .NET Standard 1.3 and .NET Core support.</summary>
14-
<releaseNotes>## Fixed
15-
- Fix for issue #501: Could not load file or assembly 'Polly, Version=5.2.0.0, Culture=neutral, PublicKeyToken=null'
16-
- The dependency for Polly has been corrected</releaseNotes>
14+
<releaseNotes>## Added
15+
- Reverted to version 9.5.2, per the conversation here: #501
16+
- Polly (which implemented Transient Fault Handling) was removed in favor of a dependency free solution.
17+
- Transient Fault Handling with Polly still exists in version 9.6.1, if needed</releaseNotes>
1718
<copyright>SendGrid, Inc. 2017</copyright>
1819
<tags>SendGrid Email Mail Microsoft Azure Transactional .NET Core</tags>
1920
<dependencies>
2021
<group targetFramework=".NETFramework4.0">
2122
<dependency id="Newtonsoft.Json" version="9.0.1" />
2223
<dependency id="System.Net.Http" version="4.0.0" />
23-
<dependency id="Polly-Signed" version="5.2.0" />
2424
</group>
2525
<group targetFramework=".NETStandard1.3">
2626
<dependency id="NETStandard.Library" version="1.6.1" />
2727
<dependency id="Newtonsoft.Json" version="9.0.1" />
2828
<dependency id="Microsoft.AspNetCore.Http.Abstractions" version="1.1.0" />
29-
<dependency id="Polly-Signed" version="5.2.0" />
3029
</group>
3130
</dependencies>
3231
</metadata>
3332
<files>
34-
<file src="..\src\SendGrid\bin\Release\net452\SendGrid.dll" target="lib\net452\SendGrid.dll" />
35-
<file src="..\src\SendGrid\bin\Release\net452\SendGrid.pdb" target="lib\net452\SendGrid.pdb" />
36-
<file src="..\src\SendGrid\bin\Release\net452\SendGrid.xml" target="lib\net452\SendGrid.xml" />
37-
<file src="..\src\SendGrid\bin\Release\netstandard1.3\SendGrid.dll" target="lib\netstandard1.3\SendGrid.dll" />
38-
<file src="..\src\SendGrid\bin\Release\netstandard1.3\SendGrid.pdb" target="lib\netstandard1.3\SendGrid.pdb" />
39-
<file src="..\src\SendGrid\bin\Release\netstandard1.3\SendGrid.xml" target="lib\netstandard1.3\SendGrid.xml" />
33+
<file src="lib\net452\SendGrid.dll" target="lib\net452\SendGrid.dll" />
34+
<file src="lib\net452\SendGrid.pdb" target="lib\net452\SendGrid.pdb" />
35+
<file src="lib\net452\SendGrid.xml" target="lib\net452\SendGrid.xml" />
36+
<file src="lib\netstandard1.3\SendGrid.dll" target="lib\netstandard1.3\SendGrid.dll" />
37+
<file src="lib\netstandard1.3\SendGrid.pdb" target="lib\netstandard1.3\SendGrid.pdb" />
38+
<file src="lib\netstandard1.3\SendGrid.xml" target="lib\netstandard1.3\SendGrid.xml" />
4039
</files>
4140
</package>

src/SendGrid/Helpers/Reliability/ReliabilitySettings.cs

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/SendGrid/Helpers/Reliability/RetryDelegatingHandler.cs

Lines changed: 0 additions & 81 deletions
This file was deleted.

src/SendGrid/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
// The following GUID is for the ID of the typelib if this project is exposed to COM
2323
[assembly: Guid("377c20e4-2297-488f-933b-fb635c56d8fc")]
2424

25-
[assembly: AssemblyInformationalVersion("9.6.1")]
25+
[assembly: AssemblyInformationalVersion("9.7.0")]

src/SendGrid/SendGrid.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<VersionPrefix>9.6.1</VersionPrefix>
4+
<VersionPrefix>9.7.0</VersionPrefix>
55
<TargetFrameworks>netstandard1.3;net452</TargetFrameworks>
66
<PlatformTarget>anycpu</PlatformTarget>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
@@ -20,7 +20,6 @@
2020
</PropertyGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="Polly-Signed" Version="5.2.0" />
2423
<PackageReference Include="StyleCop.Analyzers" Version="1.0.0">
2524
<PrivateAssets>All</PrivateAssets>
2625
</PackageReference>

0 commit comments

Comments
 (0)