FlutterEffect.MaintenanceTime
1.0.2
dotnet add package FlutterEffect.MaintenanceTime --version 1.0.2
NuGet\Install-Package FlutterEffect.MaintenanceTime -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FlutterEffect.MaintenanceTime" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FlutterEffect.MaintenanceTime" Version="1.0.2" />
<PackageReference Include="FlutterEffect.MaintenanceTime" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FlutterEffect.MaintenanceTime --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FlutterEffect.MaintenanceTime, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FlutterEffect.MaintenanceTime@1.0.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FlutterEffect.MaintenanceTime&version=1.0.2
#tool nuget:?package=FlutterEffect.MaintenanceTime&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Introduction
Library for setting and detecting maintenance time for a service.
Getting Started
- Install FlutterEffect.MaintenanceTime nuget package
- Create MaintenanceTime section in your config file
- In Startup.cs call
services.AddSingleton(new MaintenanceTimeDetector(Configuration, "MaintenanceTime")); - Import MaintenanceTimeDetector instance in your service
--or--
- Create MaintenanceTimeDetector as a list of MaintenanceTimeConfigEntry
- You can create MaintenanceTimeConfigEntry by using any WeekdayTimeEntry constructor, or by specifying maintenance time in format "Weekday, Timespan":
new MaintenanceTimeConfigEntry("Tuesday, 6:00", "Wednesday,6:00")
Config section reference
"MaintenanceTime": [ //array of time sections
{
"From": { //Beginning of maintenance
"Weekday": "Friday", //Day of week (weekly). Skip this for daily maintenance.
"Time": "17:00" //Time of day
},
"To": { //Ending of maintenance
"Weekday": "Sunday",
"Time": "19:00"
}
},
{
"From": {
"Weekday": "Monday",
"Time": "17:00"
},
"To": {
"Weekday": "Monday",
"Time": "19:00"
},
"Disabled": true //to disable the entry
}
]
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.Extensions.Configuration (>= 7.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 7.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.2 | 776 | 4/26/2023 |