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.
paket add FlutterEffect.MaintenanceTime --version 1.0.2
#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.
// Install FlutterEffect.MaintenanceTime as a Cake Addin
#addin nuget:?package=FlutterEffect.MaintenanceTime&version=1.0.2

// Install FlutterEffect.MaintenanceTime as a Cake Tool
#tool nuget:?package=FlutterEffect.MaintenanceTime&version=1.0.2

Introduction

Library for setting and detecting maintenance time for a service.

Nuget

Getting Started

  1. Install FlutterEffect.MaintenanceTime nuget package
  2. Create MaintenanceTime section in your config file
  3. In Startup.cs call services.AddSingleton(new MaintenanceTimeDetector(Configuration, "MaintenanceTime"));
  4. Import MaintenanceTimeDetector instance in your service

--or--

  1. Create MaintenanceTimeDetector as a list of MaintenanceTimeConfigEntry
  2. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 613 4/26/2023