From be8f0447a759d731352dfc2785bd68fb23327fc4 Mon Sep 17 00:00:00 2001 From: Egil Hansen Date: Tue, 14 Nov 2023 20:49:18 +0000 Subject: [PATCH] chore: upgrade dependencies, mark stable --- CHANGELOG.md | 8 +++++ ...meProviderExtensions.ManualTimeProvider.md | 30 +++++++++---------- .../TimeProviderExtensions.csproj | 2 +- .../TimeProviderExtensions.Tests.csproj | 3 +- 4 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07c73f7..e4e6537 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to TimeProviderExtensions will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.0] + +- Upgrade dependencies to none-preview versions. + +## [1.0.0-rc.3] + +- Generate strong-named assemblies. + ## [1.0.0-rc.2] - Added `ActiveTimers` property to `ManualTimeProvider`. The property will display the number of currently active timers that have a callback scheduled to be called in the future. diff --git a/docs/TimeProviderExtensions.ManualTimeProvider.md b/docs/TimeProviderExtensions.ManualTimeProvider.md index 1185759..57a24fc 100644 --- a/docs/TimeProviderExtensions.ManualTimeProvider.md +++ b/docs/TimeProviderExtensions.ManualTimeProvider.md @@ -30,51 +30,51 @@ This creates a provider whose time is initially set to midnight January 1st 2000 with the local time zone set to [System.TimeZoneInfo.Utc](https://docs.microsoft.com/en-us/dotnet/api/System.TimeZoneInfo.Utc 'System.TimeZoneInfo.Utc'). The provider is set to not automatically advance time each time it is read. - + -## ManualTimeProvider(DateTimeOffset, TimeZoneInfo) Constructor +## ManualTimeProvider(DateTimeOffset) Constructor Initializes a new instance of the [ManualTimeProvider](TimeProviderExtensions.ManualTimeProvider.md 'TimeProviderExtensions.ManualTimeProvider') class. ```csharp -public ManualTimeProvider(System.DateTimeOffset startDateTime, System.TimeZoneInfo localTimeZone); +public ManualTimeProvider(System.DateTimeOffset startDateTime); ``` #### Parameters - + `startDateTime` [System.DateTimeOffset](https://docs.microsoft.com/en-us/dotnet/api/System.DateTimeOffset 'System.DateTimeOffset') The initial time and date reported by the provider. - - -`localTimeZone` [System.TimeZoneInfo](https://docs.microsoft.com/en-us/dotnet/api/System.TimeZoneInfo 'System.TimeZoneInfo') - -Optional local time zone to use during testing. Defaults to [System.TimeZoneInfo.Utc](https://docs.microsoft.com/en-us/dotnet/api/System.TimeZoneInfo.Utc 'System.TimeZoneInfo.Utc'). - ### Remarks +The local time zone set to [System.TimeZoneInfo.Utc](https://docs.microsoft.com/en-us/dotnet/api/System.TimeZoneInfo.Utc 'System.TimeZoneInfo.Utc'). The provider is set to not automatically advance time each time it is read. - + -## ManualTimeProvider(DateTimeOffset) Constructor +## ManualTimeProvider(DateTimeOffset, TimeZoneInfo) Constructor Initializes a new instance of the [ManualTimeProvider](TimeProviderExtensions.ManualTimeProvider.md 'TimeProviderExtensions.ManualTimeProvider') class. ```csharp -public ManualTimeProvider(System.DateTimeOffset startDateTime); +public ManualTimeProvider(System.DateTimeOffset startDateTime, System.TimeZoneInfo localTimeZone); ``` #### Parameters - + `startDateTime` [System.DateTimeOffset](https://docs.microsoft.com/en-us/dotnet/api/System.DateTimeOffset 'System.DateTimeOffset') The initial time and date reported by the provider. + + +`localTimeZone` [System.TimeZoneInfo](https://docs.microsoft.com/en-us/dotnet/api/System.TimeZoneInfo 'System.TimeZoneInfo') + +Optional local time zone to use during testing. Defaults to [System.TimeZoneInfo.Utc](https://docs.microsoft.com/en-us/dotnet/api/System.TimeZoneInfo.Utc 'System.TimeZoneInfo.Utc'). + ### Remarks -The local time zone set to [System.TimeZoneInfo.Utc](https://docs.microsoft.com/en-us/dotnet/api/System.TimeZoneInfo.Utc 'System.TimeZoneInfo.Utc'). The provider is set to not automatically advance time each time it is read. ### Properties diff --git a/src/TimeProviderExtensions/TimeProviderExtensions.csproj b/src/TimeProviderExtensions/TimeProviderExtensions.csproj index cee20f2..b3e560f 100644 --- a/src/TimeProviderExtensions/TimeProviderExtensions.csproj +++ b/src/TimeProviderExtensions/TimeProviderExtensions.csproj @@ -61,7 +61,7 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/test/TimeProviderExtensions.Tests/TimeProviderExtensions.Tests.csproj b/test/TimeProviderExtensions.Tests/TimeProviderExtensions.Tests.csproj index a84f70c..841879a 100644 --- a/test/TimeProviderExtensions.Tests/TimeProviderExtensions.Tests.csproj +++ b/test/TimeProviderExtensions.Tests/TimeProviderExtensions.Tests.csproj @@ -13,8 +13,7 @@ - - +