https://github.com/msx752/packzero.hostedconsoleservice
https://github.com/msx752/packzero.hostedconsoleservice
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/msx752/packzero.hostedconsoleservice
- Owner: msx752
- License: mit
- Created: 2023-02-26T19:21:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-09T17:26:05.000Z (over 3 years ago)
- Last Synced: 2025-03-19T13:11:18.648Z (over 1 year ago)
- Language: C#
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
[](https://www.nuget.org/packages/PackZero.HostedConsoleService)
[](https://github.com/msx752/PackZero.HostedConsoleService/actions/workflows/codeql.yml)
[](https://github.com/msx752/PackZero.HostedConsoleService/blob/main/LICENSE.md)
# PackZero.HostedConsoleService
Extension that is easy way to managing .NET ConsoleApp
# How to Use
``` c#
using PackZero.HostedConsoleService;
```
define class `public class AppHostedService : IHostedService`
Example Program.cs definion
``` c#
var host = Host.CreateDefaultBuilder(args);
host.RunAppZeroConsole(actionServices: services =>
{
services.AddLogging(); //any service definitions
});
```