Skip to content

Commit 9e10835

Browse files
committed
feat: add support for .NET SDK V4
1 parent 5f5d9bc commit 9e10835

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

src/Amazon.Extensions.Configuration.SystemsManager/Amazon.Extensions.Configuration.SystemsManager.csproj

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,31 @@
66
<AssemblyName>Amazon.Extensions.Configuration.SystemsManager</AssemblyName>
77
<RootNamespace>Amazon.Extensions.Configuration.SystemsManager</RootNamespace>
88
<OutputType>Library</OutputType>
9-
<Version>6.2.2</Version>
109
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1110
<PackageId>Amazon.Extensions.Configuration.SystemsManager</PackageId>
1211
<Title>.NET Configuration Extensions for AWS Systems Manager</Title>
1312
<Product>Amazon.Extensions.Configuration.SystemsManager</Product>
1413
<Description>.NET Configuration Extensions for AWS Systems Manager</Description>
1514
<Authors>Amazon Web Services</Authors>
16-
<Copyright>2018-2024</Copyright>
17-
<PackageTags>AWS;Amazon;aws-sdk-v3;SimpleSystemsManagement;configuration</PackageTags>
15+
<PackageTags>AWS;Amazon;aws-sdk-v4;SimpleSystemsManagement;configuration</PackageTags>
1816
<PackageProjectUrl>https://github.com/aws/aws-dotnet-extensions-configuration/</PackageProjectUrl>
1917
<PackageLicenseFile>LICENSE</PackageLicenseFile>
2018
<PackageIcon>icon.png</PackageIcon>
2119
<RepositoryUrl>https://github.com/aws/aws-dotnet-extensions-configuration/</RepositoryUrl>
2220
<Company>Amazon Web Services</Company>
2321
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2422
<CodeAnalysisRuleSet>../ruleset.xml</CodeAnalysisRuleSet>
23+
24+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
25+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
26+
<IncludeSymbols>true</IncludeSymbols>
27+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
28+
29+
<Version>7.0.0-preview.1</Version>
30+
</PropertyGroup>
31+
32+
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0'">
33+
<IsTrimmable>true</IsTrimmable>
2534
</PropertyGroup>
2635

2736
<ItemGroup>
@@ -35,11 +44,12 @@
3544
</PropertyGroup>
3645

3746
<ItemGroup>
38-
<PackageReference Include="AWSSDK.AppConfigData" Version="3.7.400.34" />
39-
<PackageReference Include="AWSSDK.Extensions.NETCore.Setup" Version="3.7.301" />
40-
<PackageReference Include="AWSSDK.SimpleSystemsManagement" Version="3.7.402.13" />
47+
<PackageReference Include="AWSSDK.AppConfigData" Version="4.0.0-preview.4" />
48+
<PackageReference Include="AWSSDK.Extensions.NETCore.Setup" Version="4.0.0-preview.4" />
49+
<PackageReference Include="AWSSDK.SimpleSystemsManagement" Version="4.0.0-preview.4" />
4150
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.0.*" />
4251
<PackageReference Include="System.Text.Json" Condition=" '$(TargetFramework)' == 'netstandard2.0' " Version="8.0.5" />
52+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
4353
</ItemGroup>
4454

4555
<ItemGroup>

src/Amazon.Extensions.Configuration.SystemsManager/AppConfig/AppConfigProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private async Task<IDictionary<string, string>> GetDataFromServiceAsync()
126126

127127
var response = await _appConfigDataClient.GetLatestConfigurationAsync(request).ConfigureAwait(false);
128128
PollConfigurationToken = response.NextPollConfigurationToken;
129-
NextAllowedPollTime = DateTime.UtcNow.AddSeconds(response.NextPollIntervalInSeconds);
129+
NextAllowedPollTime = DateTime.UtcNow.AddSeconds(response.NextPollIntervalInSeconds ?? 0);
130130

131131
// Configuration is empty when the last received config is the latest
132132
// so only attempt to parse the AppConfig response when it is not empty

test/Amazon.Extensions.Configuration.SystemsManager.Integ/Amazon.Extensions.Configuration.SystemsManager.Integ.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="AWSSDK.AppConfig" Version="3.7.401.22" />
10+
<PackageReference Include="AWSSDK.AppConfig" Version="4.0.0-preview.4" />
1111
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
12-
<PackageReference Include="AWSSDK.SecurityToken" Version="3.7.400.34" />
12+
<PackageReference Include="AWSSDK.SecurityToken" Version="4.0.0-preview.4" />
1313
<PackageReference Include="xunit" Version="2.9.2" />
1414
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
1515
<PrivateAssets>all</PrivateAssets>

0 commit comments

Comments
 (0)