From ac7cd4da67ab73ac2979a67441d06cc9655055c9 Mon Sep 17 00:00:00 2001 From: Colin Mackay Date: Mon, 14 Nov 2022 21:15:48 +0000 Subject: [PATCH 1/2] (#65) Add source link --- release-notes/wip-release-notes.md | 8 ++++++-- .../Stravaig.Configuration.SqlServer.Tests.csproj | 2 +- .../Stravaig.Configuration.SqlServer.csproj | 14 +++++++++++++- version.txt | 2 +- 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/release-notes/wip-release-notes.md b/release-notes/wip-release-notes.md index 8c8222f..2531416 100644 --- a/release-notes/wip-release-notes.md +++ b/release-notes/wip-release-notes.md @@ -4,15 +4,19 @@ Date: ??? +### Features + +- #29: Polling interval to be time between cycles +- #65 Add source link to allow client applications to easily access the source information of this package in the debugger. + ### Bugs - #22: Change log level from debug to information for start polling message. -- #29: Polling interval to be time between cycles ### Dependent Packages - Bump Microsoft.Extensions.Configuration from 6.0.0 to 6.0.1 -- Bump Microsoft.Extensions.Logging.Abstractions from 6.0.0 to 6.0.1 +- Bump Microsoft.Extensions.Logging.Abstractions from 6.0.0 to 6.0.3 --- diff --git a/src/Stravaig.Configuration.SqlServer.Tests/Stravaig.Configuration.SqlServer.Tests.csproj b/src/Stravaig.Configuration.SqlServer.Tests/Stravaig.Configuration.SqlServer.Tests.csproj index b93d96a..5450acc 100644 --- a/src/Stravaig.Configuration.SqlServer.Tests/Stravaig.Configuration.SqlServer.Tests.csproj +++ b/src/Stravaig.Configuration.SqlServer.Tests/Stravaig.Configuration.SqlServer.Tests.csproj @@ -1,4 +1,4 @@ - + net6.0 diff --git a/src/Stravaig.Configuration.SqlServer/Stravaig.Configuration.SqlServer.csproj b/src/Stravaig.Configuration.SqlServer/Stravaig.Configuration.SqlServer.csproj index cb03a35..1ab2a7c 100644 --- a/src/Stravaig.Configuration.SqlServer/Stravaig.Configuration.SqlServer.csproj +++ b/src/Stravaig.Configuration.SqlServer/Stravaig.Configuration.SqlServer.csproj @@ -33,11 +33,23 @@ + + true + true + true + true + snupkg + + + + + + - + diff --git a/version.txt b/version.txt index 8f0916f..3eefcb9 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.5.0 +1.0.0 From b3e9f75d63f9bdb16e362d720ce25bfa3c88b846 Mon Sep 17 00:00:00 2001 From: Colin Mackay Date: Mon, 14 Nov 2022 21:24:33 +0000 Subject: [PATCH 2/2] (#65) Tidy --- .../FakeDataLoader.cs | 6 ------ .../SqlServerConfigurationSourceExtensionTests.cs | 1 - src/Stravaig.Configuration.SqlServer/Glue/DataLoader.cs | 3 +-- .../Glue/NullSqlServerConfigurationWatcher.cs | 1 - .../Glue/SqlServerConfigurationWatcher.cs | 2 +- version.txt | 2 +- 6 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/Stravaig.Configuration.SqlServer.Tests/FakeDataLoader.cs b/src/Stravaig.Configuration.SqlServer.Tests/FakeDataLoader.cs index f0f0fed..44cc017 100644 --- a/src/Stravaig.Configuration.SqlServer.Tests/FakeDataLoader.cs +++ b/src/Stravaig.Configuration.SqlServer.Tests/FakeDataLoader.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Logging.Abstractions; using Stravaig.Configuration.SqlServer.Glue; namespace Stravaig.Configuration.SqlServer.Tests; @@ -23,21 +22,16 @@ public IDictionary RetrieveData(SqlServerConfigurationSource sou public class FakeSqlServerConfigurationWatcher : ISqlServerConfigurationWatcher { - ILogger? _logger = NullLogger.Instance; - private SqlServerConfigurationProvider? _provider; - public void EnsureStarted() { } public void AttachLogger(ILogger logger) { - _logger = logger; } public void AttachProvider(SqlServerConfigurationProvider provider) { - _provider = provider; } public void Dispose() diff --git a/src/Stravaig.Configuration.SqlServer.Tests/SqlServerConfigurationSourceExtensionTests.cs b/src/Stravaig.Configuration.SqlServer.Tests/SqlServerConfigurationSourceExtensionTests.cs index 03fcf82..b00bb2d 100644 --- a/src/Stravaig.Configuration.SqlServer.Tests/SqlServerConfigurationSourceExtensionTests.cs +++ b/src/Stravaig.Configuration.SqlServer.Tests/SqlServerConfigurationSourceExtensionTests.cs @@ -1,5 +1,4 @@ using System; -using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using NUnit.Framework; using Shouldly; diff --git a/src/Stravaig.Configuration.SqlServer/Glue/DataLoader.cs b/src/Stravaig.Configuration.SqlServer/Glue/DataLoader.cs index 1911626..032d09e 100644 --- a/src/Stravaig.Configuration.SqlServer/Glue/DataLoader.cs +++ b/src/Stravaig.Configuration.SqlServer/Glue/DataLoader.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Data.SqlClient; namespace Stravaig.Configuration.SqlServer.Glue; diff --git a/src/Stravaig.Configuration.SqlServer/Glue/NullSqlServerConfigurationWatcher.cs b/src/Stravaig.Configuration.SqlServer/Glue/NullSqlServerConfigurationWatcher.cs index 4438438..aab1de4 100644 --- a/src/Stravaig.Configuration.SqlServer/Glue/NullSqlServerConfigurationWatcher.cs +++ b/src/Stravaig.Configuration.SqlServer/Glue/NullSqlServerConfigurationWatcher.cs @@ -1,4 +1,3 @@ -using System; using Microsoft.Extensions.Logging; namespace Stravaig.Configuration.SqlServer.Glue; diff --git a/src/Stravaig.Configuration.SqlServer/Glue/SqlServerConfigurationWatcher.cs b/src/Stravaig.Configuration.SqlServer/Glue/SqlServerConfigurationWatcher.cs index 364ad23..5b72374 100644 --- a/src/Stravaig.Configuration.SqlServer/Glue/SqlServerConfigurationWatcher.cs +++ b/src/Stravaig.Configuration.SqlServer/Glue/SqlServerConfigurationWatcher.cs @@ -4,7 +4,7 @@ namespace Stravaig.Configuration.SqlServer.Glue; -internal sealed class SqlServerConfigurationWatcher : ISqlServerConfigurationWatcher, IDisposable +internal sealed class SqlServerConfigurationWatcher : ISqlServerConfigurationWatcher { private readonly SqlServerConfigurationProvider _provider; private readonly Timer _timer; diff --git a/version.txt b/version.txt index 3eefcb9..8f0916f 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.0.0 +0.5.0