Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit c0dec4b

Browse files
Releasing version 2.0.0
1 parent 3b9a19e commit c0dec4b

File tree

16 files changed

+1391
-1374
lines changed

16 files changed

+1391
-1374
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
All notable changes to the LaunchDarkly .NET SDK Redis integration will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [2.0.0] - 2021-02-01
6+
This release updates the third-party dependency on `StackExchange.Redis` to use the 2.x version of that library. For details about how `StackExchange.Redis` 2.x differs from the 1.x versions, see its [release notes](https://stackexchange.github.io/StackExchange.Redis/ReleaseNotes.html).
7+
8+
This version of `LaunchDarkly.ServerSdk.Redis` requires version 5.14 or higher of the LaunchDarkly .NET SDK (`LaunchDarkly.ServerSdk`). It supports both the older configuration API used in previous versions, and the newer configuration API that was introduced in version 5.14 of the SDK and in the [1.2.0](https://github.com/launchdarkly/dotnet-server-sdk-redis/releases/tag/1.2.0) release of this package. Using the newer API (see `LaunchDarkly.Client.Integrations.Redis` in this package) is preferable because that is how configuration will work in the 6.0 release of the SDK.
9+
10+
### Added:
11+
- The `OperationTimeout` configuration property, which corresponds to `SyncTimeout` in the `StackExchange.Redis` API.
12+
13+
### Changed:
14+
- The minimum version of `StackExchange.Redis` is now 2.0.513.
15+
- The minimum version of `LaunchDarkly.ServerSdk` is now 5.14.0.
16+
- There is no longer a separate `LaunchDarkly.ServerSdk.Redis.StrongName` package that is the strong-named version; instead, there is just `LaunchDarkly.ServerSdk.Redis` which is always strong-named. That distinction was previously necessary because the `StackExchange.Redis` package had both strong-named and non-strong-named versions, which is no longer the case.
17+
- The lowest compatible version of .NET Framework is now 4.6.1 (because that is the lowest version supported by `StackExchange.Redis` 2.x). The package still has a .NET Standard 2.0 target as well.
18+
19+
### Removed:
20+
- The `ResponseTimeout` configuration property, which is no longer supported by `StackExchange.Redis`.
21+
522
## [1.2.0] - 2021-01-26
623
### Added:
724
- New classes `LaunchDarkly.Client.Integrations.Redis` and `LaunchDarkly.Client.Integrations.RedisDataStoreBuilder`, which serve the same purpose as the previous classes but are designed to work with the newer persistent data store API introduced in .NET SDK 5.14.0.

LaunchDarkly.Client.Redis.sln

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26730.16
5-
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LaunchDarkly.ServerSdk.Redis", "src\LaunchDarkly.ServerSdk.Redis\LaunchDarkly.ServerSdk.Redis.csproj", "{C497533B-8F43-4E5A-A6F4-F50880AA549C}"
7-
EndProject
8-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LaunchDarkly.ServerSdk.Redis.Tests", "test\LaunchDarkly.ServerSdk.Redis.Tests\LaunchDarkly.ServerSdk.Redis.Tests.csproj", "{2F11CC6A-3427-423E-AF63-E3600FE63627}"
9-
EndProject
10-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LaunchDarkly.ServerSdk.SharedTests", "dotnet-server-sdk-shared-tests\LaunchDarkly.ServerSdk.SharedTests\LaunchDarkly.ServerSdk.SharedTests.csproj", "{1E4AC383-D6C7-4096-9D74-B10D059E84F1}"
11-
EndProject
12-
Global
13-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
14-
Debug|Any CPU = Debug|Any CPU
15-
Release|Any CPU = Release|Any CPU
16-
EndGlobalSection
17-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18-
{C497533B-8F43-4E5A-A6F4-F50880AA549C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19-
{C497533B-8F43-4E5A-A6F4-F50880AA549C}.Debug|Any CPU.Build.0 = Debug|Any CPU
20-
{C497533B-8F43-4E5A-A6F4-F50880AA549C}.Release|Any CPU.ActiveCfg = Release|Any CPU
21-
{C497533B-8F43-4E5A-A6F4-F50880AA549C}.Release|Any CPU.Build.0 = Release|Any CPU
22-
{2F11CC6A-3427-423E-AF63-E3600FE63627}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23-
{2F11CC6A-3427-423E-AF63-E3600FE63627}.Debug|Any CPU.Build.0 = Debug|Any CPU
24-
{2F11CC6A-3427-423E-AF63-E3600FE63627}.Release|Any CPU.ActiveCfg = Release|Any CPU
25-
{2F11CC6A-3427-423E-AF63-E3600FE63627}.Release|Any CPU.Build.0 = Release|Any CPU
26-
{1E4AC383-D6C7-4096-9D74-B10D059E84F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27-
{1E4AC383-D6C7-4096-9D74-B10D059E84F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
28-
{1E4AC383-D6C7-4096-9D74-B10D059E84F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
29-
{1E4AC383-D6C7-4096-9D74-B10D059E84F1}.Release|Any CPU.Build.0 = Release|Any CPU
30-
EndGlobalSection
31-
GlobalSection(SolutionProperties) = preSolution
32-
HideSolutionNode = FALSE
33-
EndGlobalSection
34-
GlobalSection(ExtensibilityGlobals) = postSolution
35-
SolutionGuid = {C92D0169-FDC9-4B5A-A3FA-70CD9609660D}
36-
EndGlobalSection
37-
EndGlobal
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.26730.16
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LaunchDarkly.ServerSdk.Redis", "src\LaunchDarkly.ServerSdk.Redis\LaunchDarkly.ServerSdk.Redis.csproj", "{C497533B-8F43-4E5A-A6F4-F50880AA549C}"
7+
EndProject
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LaunchDarkly.ServerSdk.Redis.Tests", "test\LaunchDarkly.ServerSdk.Redis.Tests\LaunchDarkly.ServerSdk.Redis.Tests.csproj", "{2F11CC6A-3427-423E-AF63-E3600FE63627}"
9+
EndProject
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LaunchDarkly.ServerSdk.SharedTests", "dotnet-server-sdk-shared-tests\LaunchDarkly.ServerSdk.SharedTests\LaunchDarkly.ServerSdk.SharedTests.csproj", "{1E4AC383-D6C7-4096-9D74-B10D059E84F1}"
11+
EndProject
12+
Global
13+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
14+
Debug|Any CPU = Debug|Any CPU
15+
Release|Any CPU = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{C497533B-8F43-4E5A-A6F4-F50880AA549C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{C497533B-8F43-4E5A-A6F4-F50880AA549C}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{C497533B-8F43-4E5A-A6F4-F50880AA549C}.Release|Any CPU.ActiveCfg = Release|Any CPU
21+
{C497533B-8F43-4E5A-A6F4-F50880AA549C}.Release|Any CPU.Build.0 = Release|Any CPU
22+
{2F11CC6A-3427-423E-AF63-E3600FE63627}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{2F11CC6A-3427-423E-AF63-E3600FE63627}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{2F11CC6A-3427-423E-AF63-E3600FE63627}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{2F11CC6A-3427-423E-AF63-E3600FE63627}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{1E4AC383-D6C7-4096-9D74-B10D059E84F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{1E4AC383-D6C7-4096-9D74-B10D059E84F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{1E4AC383-D6C7-4096-9D74-B10D059E84F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{1E4AC383-D6C7-4096-9D74-B10D059E84F1}.Release|Any CPU.Build.0 = Release|Any CPU
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {C92D0169-FDC9-4B5A-A3FA-70CD9609660D}
36+
EndGlobalSection
37+
EndGlobal
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
4-
<IsPackable>false</IsPackable>
5-
</PropertyGroup>
6-
7-
<ItemGroup>
8-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
9-
<PackageReference Include="xunit" Version="2.4.1" />
10-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
11-
</ItemGroup>
12-
</Project>
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
4+
<IsPackable>false</IsPackable>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
9+
<PackageReference Include="xunit" Version="2.4.1" />
10+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
11+
</ItemGroup>
12+
</Project>
Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26730.16
5-
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LaunchDarkly.ServerSdk.SharedTests", "LaunchDarkly.ServerSdk.SharedTests\LaunchDarkly.ServerSdk.SharedTests.csproj", "{44904ADC-8CD1-414E-9184-9378CEB4B9CE}"
7-
EndProject
8-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LaunchDarkly.ServerSdk.SharedTests.Tests", "LaunchDarkly.ServerSdk.SharedTests.Tests\LaunchDarkly.ServerSdk.SharedTests.Tests.csproj", "{79BC10FD-FF08-40FD-B87D-E54549C1F71F}"
9-
EndProject
10-
Global
11-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12-
Debug|Any CPU = Debug|Any CPU
13-
Release|Any CPU = Release|Any CPU
14-
EndGlobalSection
15-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16-
{44904ADC-8CD1-414E-9184-9378CEB4B9CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17-
{44904ADC-8CD1-414E-9184-9378CEB4B9CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
18-
{44904ADC-8CD1-414E-9184-9378CEB4B9CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
19-
{44904ADC-8CD1-414E-9184-9378CEB4B9CE}.Release|Any CPU.Build.0 = Release|Any CPU
20-
{79BC10FD-FF08-40FD-B87D-E54549C1F71F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21-
{79BC10FD-FF08-40FD-B87D-E54549C1F71F}.Debug|Any CPU.Build.0 = Debug|Any CPU
22-
{79BC10FD-FF08-40FD-B87D-E54549C1F71F}.Release|Any CPU.ActiveCfg = Release|Any CPU
23-
{79BC10FD-FF08-40FD-B87D-E54549C1F71F}.Release|Any CPU.Build.0 = Release|Any CPU
24-
EndGlobalSection
25-
GlobalSection(SolutionProperties) = preSolution
26-
HideSolutionNode = FALSE
27-
EndGlobalSection
28-
GlobalSection(ExtensibilityGlobals) = postSolution
29-
SolutionGuid = {C92D0169-FDC9-4B5A-A3FA-70CD9609660D}
30-
EndGlobalSection
31-
EndGlobal
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.26730.16
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LaunchDarkly.ServerSdk.SharedTests", "LaunchDarkly.ServerSdk.SharedTests\LaunchDarkly.ServerSdk.SharedTests.csproj", "{44904ADC-8CD1-414E-9184-9378CEB4B9CE}"
7+
EndProject
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LaunchDarkly.ServerSdk.SharedTests.Tests", "LaunchDarkly.ServerSdk.SharedTests.Tests\LaunchDarkly.ServerSdk.SharedTests.Tests.csproj", "{79BC10FD-FF08-40FD-B87D-E54549C1F71F}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Release|Any CPU = Release|Any CPU
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{44904ADC-8CD1-414E-9184-9378CEB4B9CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{44904ADC-8CD1-414E-9184-9378CEB4B9CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{44904ADC-8CD1-414E-9184-9378CEB4B9CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{44904ADC-8CD1-414E-9184-9378CEB4B9CE}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{79BC10FD-FF08-40FD-B87D-E54549C1F71F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{79BC10FD-FF08-40FD-B87D-E54549C1F71F}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{79BC10FD-FF08-40FD-B87D-E54549C1F71F}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{79BC10FD-FF08-40FD-B87D-E54549C1F71F}.Release|Any CPU.Build.0 = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {C92D0169-FDC9-4B5A-A3FA-70CD9609660D}
30+
EndGlobalSection
31+
EndGlobal
Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
using System;
2-
using System.Collections.Generic;
3-
4-
namespace LaunchDarkly.Client.SharedTests.FeatureStore
5-
{
6-
/// <summary>
7-
/// Simplifies building the input parameter for a feature store's Init method.
8-
/// </summary>
9-
public class DataBuilder
10-
{
11-
private readonly IDictionary<IVersionedDataKind, IDictionary<String, IVersionedData>> _data =
12-
new Dictionary<IVersionedDataKind, IDictionary<String, IVersionedData>>();
13-
14-
public DataBuilder Add(IVersionedDataKind kind, params IVersionedData[] items)
15-
{
16-
IDictionary<String, IVersionedData> itemsDict;
17-
if (!_data.TryGetValue(kind, out itemsDict))
18-
{
19-
itemsDict = new Dictionary<String, IVersionedData>();
20-
_data[kind] = itemsDict;
21-
}
22-
foreach (var item in items)
23-
{
24-
itemsDict[item.Key] = item;
25-
}
26-
return this;
27-
}
28-
29-
public IDictionary<IVersionedDataKind, IDictionary<String, IVersionedData>> Build()
30-
{
31-
return _data;
32-
}
33-
}
34-
}
1+
using System;
2+
using System.Collections.Generic;
3+
4+
namespace LaunchDarkly.Client.SharedTests.FeatureStore
5+
{
6+
/// <summary>
7+
/// Simplifies building the input parameter for a feature store's Init method.
8+
/// </summary>
9+
public class DataBuilder
10+
{
11+
private readonly IDictionary<IVersionedDataKind, IDictionary<String, IVersionedData>> _data =
12+
new Dictionary<IVersionedDataKind, IDictionary<String, IVersionedData>>();
13+
14+
public DataBuilder Add(IVersionedDataKind kind, params IVersionedData[] items)
15+
{
16+
IDictionary<String, IVersionedData> itemsDict;
17+
if (!_data.TryGetValue(kind, out itemsDict))
18+
{
19+
itemsDict = new Dictionary<String, IVersionedData>();
20+
_data[kind] = itemsDict;
21+
}
22+
foreach (var item in items)
23+
{
24+
itemsDict[item.Key] = item;
25+
}
26+
return this;
27+
}
28+
29+
public IDictionary<IVersionedDataKind, IDictionary<String, IVersionedData>> Build()
30+
{
31+
return _data;
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)