GitHunt
MI

MirzaMerdovic/dual-host

Console application that's running an implementation of IHostedService together with a web server that's exposing a /health endpoint

dual-host

An example of an Console Application that start an instance of IHostedService together with a web server.

There are two examples:

  1. Using Nancy SelfHost as a web server
  2. Using Kestrel

both implementation expose one single route: /health

Note: Nancy can also be used using Kestrel, but than we need to introduce Owin pipelines, which was something that I wanted to avoid since AspNet Core already offers us a pipeline that works great with Kestrel

Languages

C#100.0%

Contributors

MIT License
Created August 5, 2019
Updated January 28, 2023
MirzaMerdovic/dual-host | GitHunt