Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 736 Bytes

Rezolver.Microsoft.Extensions.Hosting Package

See package page on nuget.

Rezolver also offers integration with the .Net Generic Host. Setup and configuration is very similar to when integrating Rezolver with Asp.Net Core except whereas Asp.Net Core supports a convention-based approach to configuring the container, the generic host does not.

Here is a complete example which uses Rezolver's decorator functionality to add logging on startup and shutdown of all @Microsoft.Extensions.Hosting.IHostedService services:

[!code-csharpProgram.cs]

You can’t perform that action at this time.