Skip to content

Commit

Permalink
Update version number. Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dixin committed Nov 16, 2021
1 parent ac1060a commit d5d4d01
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ Transient Fault Handling Application Block/Retry patterns for .NET Core / .NET S

TransientFaultHandling.Core is retry library for transient error handling. It is ported from Microsoft Enterprise Library’s Transient Fault Handling Application Block, a library widely used with .NET Framework.

- The retry pattern APIs are ported to .NET Core/.NET Standard
- New functional and fluent APIs added easily implement retry logic
- The outdated configuration APIs are now up to date
- The retry pattern APIs are ported to .NET 6 & .NET 5 & .NET Core & .NET Standard.
- New functional and fluent APIs to easily implement retry logic.
- The outdated configuration & APIs are replaced by modern .NET JSON/XML/INI configuration.

## Introduction

With this library, the old code with retry logic based on Microsoft Enterprise Library can be ported to .NET Core/.NET Standard without modification:
With this library, the old code with retry logic based on Microsoft Enterprise Library can be ported to .NET 6 & .NET 5 & .NET Core & .NET Standard without modification:
```cs
ITransientErrorDetectionStrategy transientExceptionDetection = new MyDetection();
RetryStrategy retryStrategy = new FixedInterval(retryCount: 5, retryInterval: TimeSpan.FromSeconds(1));
Expand All @@ -33,7 +33,7 @@ Retry
increment: TimeSpan.FromSeconds(1))
.Catch<OperationCanceledException>()
.Catch<WebException>(exception =>
exception.Response is HttpWebResponse response && response.StatusCode == HttpStatusCode.RequestTimeout)
exception.Response is HttpWebResponse { StatusCode: HttpStatusCode.RequestTimeout })
.ExecuteAction(() => webClient.DownloadString("https://DixinYan.com"));
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<RootNamespace>Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling</RootNamespace>
<LangVersion>latest</LangVersion>
<PackageId>TransientFaultHandling.Caching</PackageId>
<Version>2.1.0</Version>
<Version>3.0.0</Version>
<Authors>Dixin Yan</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Company>https://DixinYan.com</Company>
Expand All @@ -19,8 +19,8 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>../../Tools/Key.snk</AssemblyOriginatorKeyFile>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
<FileVersion>2.1.0.0</FileVersion>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<FileVersion>3.0.0.0</FileVersion>
<LangVersion>latest</LangVersion>
<nullable>enable</nullable>
<NoWarn>CS0436</NoWarn>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>netstandard2.0;net5.0;net6.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>TransientFaultHandling.Configuration</PackageId>
<Version>2.1.0</Version>
<Version>3.0.0</Version>
<Authors>Dixin Yan</Authors>
<Company>https://DixinYan.com</Company>
<PackageDescription>https://github.com/Dixin/EnterpriseLibrary.TransientFaultHandling.Core</PackageDescription>
Expand All @@ -19,8 +19,8 @@
<AssemblyName>TransientFaultHandling.Configuration.Core</AssemblyName>
<LangVersion>latest</LangVersion>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
<FileVersion>2.1.0.0</FileVersion>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<FileVersion>3.0.0.0</FileVersion>
<LangVersion>latest</LangVersion>
<nullable>enable</nullable>
<NoWarn>CS0436</NoWarn>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFrameworks>netstandard1.0;netstandard2.0;netstandard2.1;net5.0;net6.0</TargetFrameworks>
<Version>2.1.0</Version>
<Version>3.0.0</Version>
<Authors>Dixin Yan</Authors>
<Company>https://DixinYan.com</Company>
<Copyright>Initially ported from https://www.nuget.org/packages/EnterpriseLibrary.TransientFaultHandling</Copyright>
Expand All @@ -17,8 +17,8 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>../../Tools/Key.snk</AssemblyOriginatorKeyFile>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
<FileVersion>2.1.0.0</FileVersion>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<FileVersion>3.0.0.0</FileVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>EnterpriseLibrary.TransientFaultHandling.Core</PackageId>
<AssemblyName>TransientFaultHandling.Core</AssemblyName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<AssemblyName>TransientFaultHandling.Data.Core</AssemblyName>
<RootNamespace>Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling</RootNamespace>
<LangVersion>latest</LangVersion>
<Version>2.2.0</Version>
<Version>3.0.0</Version>
<PackageId>TransientFaultHandling.Data</PackageId>
<Authors>Dixin Yan</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand All @@ -19,8 +19,8 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>../../Tools/Key.snk</AssemblyOriginatorKeyFile>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<AssemblyVersion>2.2.0.0</AssemblyVersion>
<FileVersion>2.2.0.0</FileVersion>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<FileVersion>3.0.0.0</FileVersion>
<LangVersion>latest</LangVersion>
<nullable>enable</nullable>
<NoWarn>CS0436</NoWarn>
Expand Down

0 comments on commit d5d4d01

Please sign in to comment.