Skip to content

Commit d5d4d01

Browse files
committed
Update version number. Update README.
1 parent ac1060a commit d5d4d01

5 files changed

Lines changed: 17 additions & 17 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ Transient Fault Handling Application Block/Retry patterns for .NET Core / .NET S
55

66
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.
77

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

1212
## Introduction
1313

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

Source/TransientFaultHandling.Caching.Core/TransientFaultHandling.Caching.Core.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<RootNamespace>Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling</RootNamespace>
77
<LangVersion>latest</LangVersion>
88
<PackageId>TransientFaultHandling.Caching</PackageId>
9-
<Version>2.1.0</Version>
9+
<Version>3.0.0</Version>
1010
<Authors>Dixin Yan</Authors>
1111
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1212
<Company>https://DixinYan.com</Company>
@@ -19,8 +19,8 @@
1919
<SignAssembly>true</SignAssembly>
2020
<AssemblyOriginatorKeyFile>../../Tools/Key.snk</AssemblyOriginatorKeyFile>
2121
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
22-
<AssemblyVersion>2.1.0.0</AssemblyVersion>
23-
<FileVersion>2.1.0.0</FileVersion>
22+
<AssemblyVersion>3.0.0.0</AssemblyVersion>
23+
<FileVersion>3.0.0.0</FileVersion>
2424
<LangVersion>latest</LangVersion>
2525
<nullable>enable</nullable>
2626
<NoWarn>CS0436</NoWarn>

Source/TransientFaultHandling.Configuration.Core/TransientFaultHandling.Configuration.Core.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFrameworks>netstandard2.0;net5.0;net6.0</TargetFrameworks>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
66
<PackageId>TransientFaultHandling.Configuration</PackageId>
7-
<Version>2.1.0</Version>
7+
<Version>3.0.0</Version>
88
<Authors>Dixin Yan</Authors>
99
<Company>https://DixinYan.com</Company>
1010
<PackageDescription>https://github.com/Dixin/EnterpriseLibrary.TransientFaultHandling.Core</PackageDescription>
@@ -19,8 +19,8 @@
1919
<AssemblyName>TransientFaultHandling.Configuration.Core</AssemblyName>
2020
<LangVersion>latest</LangVersion>
2121
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
22-
<AssemblyVersion>2.1.0.0</AssemblyVersion>
23-
<FileVersion>2.1.0.0</FileVersion>
22+
<AssemblyVersion>3.0.0.0</AssemblyVersion>
23+
<FileVersion>3.0.0.0</FileVersion>
2424
<LangVersion>latest</LangVersion>
2525
<nullable>enable</nullable>
2626
<NoWarn>CS0436</NoWarn>

Source/TransientFaultHandling.Core/TransientFaultHandling.Core.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard1.0;netstandard2.0;netstandard2.1;net5.0;net6.0</TargetFrameworks>
5-
<Version>2.1.0</Version>
5+
<Version>3.0.0</Version>
66
<Authors>Dixin Yan</Authors>
77
<Company>https://DixinYan.com</Company>
88
<Copyright>Initially ported from https://www.nuget.org/packages/EnterpriseLibrary.TransientFaultHandling</Copyright>
@@ -17,8 +17,8 @@
1717
<SignAssembly>true</SignAssembly>
1818
<AssemblyOriginatorKeyFile>../../Tools/Key.snk</AssemblyOriginatorKeyFile>
1919
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
20-
<AssemblyVersion>2.1.0.0</AssemblyVersion>
21-
<FileVersion>2.1.0.0</FileVersion>
20+
<AssemblyVersion>3.0.0.0</AssemblyVersion>
21+
<FileVersion>3.0.0.0</FileVersion>
2222
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
2323
<PackageId>EnterpriseLibrary.TransientFaultHandling.Core</PackageId>
2424
<AssemblyName>TransientFaultHandling.Core</AssemblyName>

Source/TransientFaultHandling.Data.Core/TransientFaultHandling.Data.Core.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<AssemblyName>TransientFaultHandling.Data.Core</AssemblyName>
66
<RootNamespace>Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling</RootNamespace>
77
<LangVersion>latest</LangVersion>
8-
<Version>2.2.0</Version>
8+
<Version>3.0.0</Version>
99
<PackageId>TransientFaultHandling.Data</PackageId>
1010
<Authors>Dixin Yan</Authors>
1111
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
@@ -19,8 +19,8 @@
1919
<SignAssembly>true</SignAssembly>
2020
<AssemblyOriginatorKeyFile>../../Tools/Key.snk</AssemblyOriginatorKeyFile>
2121
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
22-
<AssemblyVersion>2.2.0.0</AssemblyVersion>
23-
<FileVersion>2.2.0.0</FileVersion>
22+
<AssemblyVersion>3.0.0.0</AssemblyVersion>
23+
<FileVersion>3.0.0.0</FileVersion>
2424
<LangVersion>latest</LangVersion>
2525
<nullable>enable</nullable>
2626
<NoWarn>CS0436</NoWarn>

0 commit comments

Comments
 (0)