You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Use the SendGridClientOptions object to set ReliabilitySettings when you want to introduce an element of resiliancy against transient faults into your solution.
<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>
13
13
<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>
17
18
<copyright>SendGrid, Inc. 2017</copyright>
18
19
<tags>SendGrid Email Mail Microsoft Azure Transactional .NET Core</tags>
0 commit comments