godsharp - Hsu.Daemon.Systemd 2024.103.25

An easy service hosting library for Windows and Linux.

PM> Install-Package Hsu.Daemon.Systemd -Version 2024.103.25 -Source https://www.myget.org/F/godsharp/api/v3/index.json

Copy to clipboard

> nuget.exe install Hsu.Daemon.Systemd -Version 2024.103.25 -Source https://www.myget.org/F/godsharp/api/v3/index.json

Copy to clipboard

> dotnet add package Hsu.Daemon.Systemd --version 2024.103.25 --source https://www.myget.org/F/godsharp/api/v3/index.json

Copy to clipboard
<PackageReference Include="Hsu.Daemon.Systemd" Version="2024.103.25" />
Copy to clipboard
source https://www.myget.org/F/godsharp/api/v3/index.json

nuget Hsu.Daemon.Systemd  ~> 2024.103.25
Copy to clipboard

> choco install Hsu.Daemon.Systemd --version 2024.103.25 --source https://www.myget.org/F/godsharp/api/v2

Copy to clipboard
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" -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

dev preview main nuke build windows linux

Package Version

Name Source Stable Preview
Hsu.Daemon.Abstractions Nuget NuGet NuGet
Hsu.Daemon.Abstractions MyGet MyGet MyGet
Hsu.Daemon.Cli Nuget NuGet NuGet
Hsu.Daemon.Cli MyGet MyGet MyGet
Hsu.Daemon.Windows Nuget NuGet NuGet
Hsu.Daemon.Windows MyGet MyGet MyGet
Hsu.Daemon.Systemd Nuget NuGet NuGet
Hsu.Daemon.Systemd MyGet MyGet MyGet
Hsu.Daemon.Hosting Nuget NuGet NuGet
Hsu.Daemon.Hosting MyGet MyGet MyGet
Hsu.Daemon.Hosting.Web Nuget NuGet NuGet
Hsu.Daemon.Hosting.Web MyGet MyGet MyGet
Hsu.Daemon.Template Nuget NuGet NuGet
Hsu.Daemon.Template MyGet MyGet MyGet
  • 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
    • Hsu.Daemon.Abstractions (>= 2024.103.25)
  • .NETStandard 2.0: 2.0.0.0

Owners

Seay

Authors

Hsu

Project URL

https://github.com/hsu-net/daemon

License

Unknown

Tags

Service Worker Worker Service Windows Service Systemd

Info

0 total downloads
0 downloads for version 2024.103.25
Download (20.38 KB)
Download symbols (8.32 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