An open API service indexing awesome lists of open source software.

https://github.com/msx752/packzero.hostedconsoleservice


https://github.com/msx752/packzero.hostedconsoleservice

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

[![Nuget](https://img.shields.io/badge/package-PackZero.HostedConsoleService-brightgreen.svg?maxAge=259200)](https://www.nuget.org/packages/PackZero.HostedConsoleService)
[![CodeQL](https://github.com/msx752/PackZero.HostedConsoleService/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/msx752/PackZero.HostedConsoleService/actions/workflows/codeql.yml)
[![MIT](https://img.shields.io/badge/License-MIT-blue.svg?maxAge=259200)](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
});
```