godsharp - Hsu.Daemon.Systemd 2024.103.25-preview103615
An easy service hosting library for Windows and Linux.
PM> Install-Package Hsu.Daemon.Systemd -Version 2024.103.25-preview103615 -Source https://www.myget.org/F/godsharp/api/v3/index.json
> nuget.exe install Hsu.Daemon.Systemd -Version 2024.103.25-preview103615 -Source https://www.myget.org/F/godsharp/api/v3/index.json
> dotnet add package Hsu.Daemon.Systemd --version 2024.103.25-preview103615 --source https://www.myget.org/F/godsharp/api/v3/index.json
<PackageReference Include="Hsu.Daemon.Systemd" Version="2024.103.25-preview103615" />
Copy to clipboard
source https://www.myget.org/F/godsharp/api/v3/index.json
nuget Hsu.Daemon.Systemd ~> 2024.103.25-preview103615
Copy to clipboard
> choco install Hsu.Daemon.Systemd --version 2024.103.25-preview103615 --source https://www.myget.org/F/godsharp/api/v2
Import-Module PowerShellGet
Register-PSRepository -Name "godsharp" -SourceLocation "https://www.myget.org/F/godsharp/api/v2"
Install-Module -Name "Hsu.Daemon.Systemd" -RequiredVersion "2024.103.25-preview103615" -Repository "godsharp" -AllowPreRelease
Copy to clipboard
Browse the sources in this package using Visual Studio or WinDbg by configuring the following symbol server URL: https://www.myget.org/F/godsharp/api/v2/symbolpackage/
Hsu.Daemon
Package Version
- Web : Used for
IWebHost
.
Getting Started
Self Commands
# windows
appName.exe --help
# Linux
dotnet appName.dll --help
Windows Service(.NET Framework)
PM> Install-Package Hsu.Daemon.Cli
PM> Install-Package Hsu.Daemon.Windows
var daemond = Daemond.CreateBuilder(args).UseWindowsServices().Build();
if (!daemond.Runnable()) return;
daemond
.Configure(x => x
.OnStart(OnStart)
.OnStop(OnStop)
)
.Run();
Worker Service
PM> Install-Package Hsu.Daemon.Cli
PM> Install-Package Hsu.Daemon.Windows
PM> Install-Package Hsu.Daemon.Systemd
PM> Install-Package Hsu.Daemon.Hosting
// 1. To parser arguments
var daemond = Daemond.CreateBuilder(args).UseWindowsServices().Build();
if (!daemond.Runnable()) return;
var builder = Host.CreateDefaultBuilder(args);
// 2. Use middleware
// builder.UseWindowsService();
// or
// builder.UseSystemd();
// 3. Execute serving or console
builder.Build().Run(daemond.Code);
License
MIT
- .NETStandard 2.0: 2.0.0.0
OwnersSeay |
AuthorsHsu |
Project URLhttps://github.com/hsu-net/daemon |
LicenseUnknown |
TagsService Worker Worker Service Windows Service Systemd |
Info0 total downloads |
0 downloads for version 2024.103.25-preview103615 |
Download (20.42 KB) |
Download symbols (8.34 KB) |
Found on the current feed only |
Package history
Version | Size | Last updated | Downloads | Mirrored? | |||
---|---|---|---|---|---|---|---|
2024.103.25 | 20.38 KB | Mon, 25 Mar 2024 04:30:04 GMT | 0 | ||||
2024.103.25-preview122740 | 20.43 KB | Mon, 25 Mar 2024 04:28:10 GMT | 0 | ||||
2024.103.25-preview110859 | 20.42 KB | Mon, 25 Mar 2024 03:09:25 GMT | 0 | ||||
2024.103.25-preview103615 | 20.42 KB | Mon, 25 Mar 2024 02:36:51 GMT | 0 | ||||
2023.309.5-preview170442 | 20.41 KB | Tue, 05 Sep 2023 09:05:08 GMT | 0 |