Skip to content

Commit

Permalink
chore: upgrade dependencies, mark stable
Browse files Browse the repository at this point in the history
  • Loading branch information
egil committed Nov 14, 2023
1 parent 7949fae commit be8f044
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
30 changes: 15 additions & 15 deletions docs/TimeProviderExtensions.ManualTimeProvider.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<a name='TimeProviderExtensions.ManualTimeProvider.ManualTimeProvider(System.DateTimeOffset,System.TimeZoneInfo)'></a>
<a name='TimeProviderExtensions.ManualTimeProvider.ManualTimeProvider(System.DateTimeOffset)'></a>

## 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

<a name='TimeProviderExtensions.ManualTimeProvider.ManualTimeProvider(System.DateTimeOffset,System.TimeZoneInfo).startDateTime'></a>
<a name='TimeProviderExtensions.ManualTimeProvider.ManualTimeProvider(System.DateTimeOffset).startDateTime'></a>

`startDateTime` [System.DateTimeOffset](https://docs.microsoft.com/en-us/dotnet/api/System.DateTimeOffset 'System.DateTimeOffset')
The initial time and date reported by the provider.

<a name='TimeProviderExtensions.ManualTimeProvider.ManualTimeProvider(System.DateTimeOffset,System.TimeZoneInfo).localTimeZone'></a>

`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.

<a name='TimeProviderExtensions.ManualTimeProvider.ManualTimeProvider(System.DateTimeOffset)'></a>
<a name='TimeProviderExtensions.ManualTimeProvider.ManualTimeProvider(System.DateTimeOffset,System.TimeZoneInfo)'></a>

## 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

<a name='TimeProviderExtensions.ManualTimeProvider.ManualTimeProvider(System.DateTimeOffset).startDateTime'></a>
<a name='TimeProviderExtensions.ManualTimeProvider.ManualTimeProvider(System.DateTimeOffset,System.TimeZoneInfo).startDateTime'></a>

`startDateTime` [System.DateTimeOffset](https://docs.microsoft.com/en-us/dotnet/api/System.DateTimeOffset 'System.DateTimeOffset')
The initial time and date reported by the provider.

<a name='TimeProviderExtensions.ManualTimeProvider.ManualTimeProvider(System.DateTimeOffset,System.TimeZoneInfo).localTimeZone'></a>

`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

Expand Down
2 changes: 1 addition & 1 deletion src/TimeProviderExtensions/TimeProviderExtensions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Bcl.TimeProvider" Version="8.0.0-rc.*" Condition="'$(TargetFramework)' != 'net8.0'" />
<PackageReference Include="Microsoft.Bcl.TimeProvider" Version="8.0.0" Condition="'$(TargetFramework)' != 'net8.0'" />
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
</PropertyGroup>

<ItemGroup>
<!--<PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="8.0.0-rc.1.23453.1" />-->
<PackageReference Include="Microsoft.Bcl.TimeProvider" Version="8.0.0-rc.*" />
<PackageReference Include="Microsoft.Bcl.TimeProvider" Version="8.0.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="xunit" Version="2.5.0" />
Expand Down

0 comments on commit be8f044

Please sign in to comment.