godsharp - Hsu.Daemon.Hosting 2023.308.31
An easy service hosting library for Windows and Linux.
PM> Install-Package Hsu.Daemon.Hosting -Version 2023.308.31 -Source https://www.myget.org/F/godsharp/api/v3/index.json
> nuget.exe install Hsu.Daemon.Hosting -Version 2023.308.31 -Source https://www.myget.org/F/godsharp/api/v3/index.json
> dotnet add package Hsu.Daemon.Hosting --version 2023.308.31 --source https://www.myget.org/F/godsharp/api/v3/index.json
source https://www.myget.org/F/godsharp/api/v3/index.json
nuget Hsu.Daemon.Hosting ~> 2023.308.31
Copy to clipboard
> choco install Hsu.Daemon.Hosting --version 2023.308.31 --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.Hosting" -RequiredVersion "2023.308.31" -Repository "godsharp"
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
-
.NETFramework 4.6.1
- Hsu.Daemon (>= 2023.308.31)
- Microsoft.Extensions.Hosting.Abstractions (>= 2.1.0)
-
.NETCoreApp 3.1
- Hsu.Daemon (>= 2023.308.31)
- Microsoft.Extensions.Hosting.Abstractions (>= 3.1.32)
-
.NETFramework 5.0
- Hsu.Daemon (>= 2023.308.31)
- Microsoft.Extensions.Hosting.Abstractions (>= 5.0.0)
-
.NETFramework 6.0
- Hsu.Daemon (>= 2023.308.31)
- Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0)
-
.NETFramework 7.0
- Hsu.Daemon (>= 2023.308.31)
- Microsoft.Extensions.Hosting.Abstractions (>= 7.0.0)
-
.NETStandard 2.0
- Hsu.Daemon (>= 2023.308.31)
- Microsoft.Extensions.Hosting.Abstractions (>= 2.1.0)
- .NETCoreApp 3.1: 3.1.0.0
- .NETFramework 4.6.1: 4.6.1.0
- .NETFramework 5.0: 5.0.0.0
- .NETFramework 6.0: 6.0.0.0
- .NETFramework 7.0: 7.0.0.0
- .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 2023.308.31 |
Download (33.54 KB) |
Download symbols (42.24 KB) |
Found on the current feed only |
Package history
Version | Size | Last updated | Downloads | Mirrored? | |||
---|---|---|---|---|---|---|---|
2024.103.25 | 39.94 KB | Mon, 25 Mar 2024 04:30:12 GMT | 0 | ||||
2024.103.25-preview122740 | 40.18 KB | Mon, 25 Mar 2024 04:28:15 GMT | 0 | ||||
2024.103.25-preview110859 | 40.14 KB | Mon, 25 Mar 2024 03:09:27 GMT | 0 | ||||
2024.103.25-preview103615 | 40.15 KB | Mon, 25 Mar 2024 02:36:38 GMT | 0 | ||||
2023.309.5-preview170442 | 33.74 KB | Tue, 05 Sep 2023 09:05:23 GMT | 0 | ||||
2023.308.31 | 33.54 KB | Wed, 30 Aug 2023 17:08:03 GMT | 0 | ||||
2023.308.31-preview010312 | 33.73 KB | Wed, 30 Aug 2023 17:03:40 GMT | 0 | ||||
2023.308.30 | 36.85 KB | Wed, 30 Aug 2023 10:29:29 GMT | 0 | ||||
2023.308.30-preview175413 | 37.07 KB | Wed, 30 Aug 2023 09:54:42 GMT | 0 | ||||
2023.308.30-preview162731 | 37.54 KB | Wed, 30 Aug 2023 08:28:06 GMT | 0 | ||||
2023.308.29-preview174617 | 30.67 KB | Tue, 29 Aug 2023 09:46:47 GMT | 0 | ||||
2023.307.25 | 30.5 KB | Mon, 24 Jul 2023 16:24:02 GMT | 0 | ||||
2023.307.25-preview002120 | 30.67 KB | Mon, 24 Jul 2023 16:21:42 GMT | 0 | ||||
2023.307.25-preview000045 | 30.66 KB | Mon, 24 Jul 2023 16:01:09 GMT | 0 | ||||
2023.307.24-preview152858 | 30.69 KB | Mon, 24 Jul 2023 07:29:22 GMT | 0 | ||||
2023.307.24-preview141625 | 30.65 KB | Mon, 24 Jul 2023 06:16:52 GMT | 0 | ||||
2023.307.18 | 30.22 KB | Mon, 17 Jul 2023 16:02:30 GMT | 0 |