PeanutButter.ServiceShell NuGet Package

The Service Shell slice of the PeanutButter mini-suite
1.

Inherit from `Shell`
2. Set Desdcription, ServiceName, and, optionally, Version
3. override `RunOnce`
4. remember to call Shell.RunMain<MyService>(args) from your Program/Main method

Service Shell provides an easy way to run polling services - simply implement the
RunOnce method and set your interval.

Shell ensures that the RunOnce is not re-entered:
if your poll time exceeds the interval, you'll simply run polls back-to-back

Including (4) means you can, from the cli, perform the following with the service:
- install
- uninstall
- start
- stop
- restart
- run-once (for testing or for running from another scheduler).




Got any PeanutButter.ServiceShell Question?





Info

Version: 3.0.335
Author(s): Davyd McColl
Last Update: Tuesday, December 17, 2024
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/fluffynuts/PeanutButter
NuGet Url: https://www.nuget.org/packages/PeanutButter.ServiceShell


Install
Install-Package PeanutButter.ServiceShell
dotnet add package PeanutButter.ServiceShell
paket add PeanutButter.ServiceShell
PeanutButter.ServiceShell Download (Unzip the "nupkg" after downloading)

net452 net462


Tags



STATS

must-have-score

4.2

avg-downloads-per-day

257

days-since-last-release

5