Fluxera.Extensions.Hosting.AspNetCore 8.0.3

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package Fluxera.Extensions.Hosting.AspNetCore --version 8.0.3
NuGet\Install-Package Fluxera.Extensions.Hosting.AspNetCore -Version 8.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fluxera.Extensions.Hosting.AspNetCore" Version="8.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Fluxera.Extensions.Hosting.AspNetCore --version 8.0.3
#r "nuget: Fluxera.Extensions.Hosting.AspNetCore, 8.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Fluxera.Extensions.Hosting.AspNetCore as a Cake Addin
#addin nuget:?package=Fluxera.Extensions.Hosting.AspNetCore&version=8.0.3

// Install Fluxera.Extensions.Hosting.AspNetCore as a Cake Tool
#tool nuget:?package=Fluxera.Extensions.Hosting.AspNetCore&version=8.0.3

Build Status


A library that extends the Microsoft.Extensions.Hosting library with modular host implementations for various application platforms.

The library uses the generic host implementation and build a modular structure upon it. It is possible to split your application into login modules that can be shared between different types of applications.

Available Hosts

The modular host is available for the following applicattion types:

  • ASP.NET Core
  • Blazor WebAssembly
  • Console / Windows Service
  • WPF
  • MAUI


Every application needs a host and a startup module class. The application is composed of modules that define dependencies on other modules and optional modules that are loaded as plugins.

public class ConsoleApplicationModule : ConfigureServicesModule
	public override void ConfigureServices(IServiceConfigurationContext context)
		context.Services.AddSingleton<IWeatherService, WeatherService>();

This startup module just configures some services and regiosters them in the service collection. The service confiuration pipelineis split up into three steps: pre-configure-, configure- and post-configure-services. Each methos is executed in every module, before moving to the next method.

If you need to configure the application after the creation of the service provider you can just use the base class ConfigureApplicationModule which provides a similar three step pipeline for initializing the application: pre-configure, configure and post-configure. Additionally this base class provides a methos that is executed on every module when the application shuts down.

In addtition to the two base classes ConfigureServicesModule and ConfigureApplicationModule you are free to use one of the module interfaces to meet you configuration needs.

  • IModule
    • IConfigureServicesModule
      • IPreConfigureServices
      • IConfigureServices
      • IPostConfigureServices
    • IConfigureApplicationModule
      • IPreConfigureApplication
      • IConfigureApplication
      • IPostConfigureApplication
    • IShutdownApplicationModule

You can even just implement the IModule interface on your module class, if you don't need any configuration and application initialization.

public class ConsoleApplicationHost : ConsoleApplicationHost<ConsoleApplicationModule>

The simplest application host class just inherits from one of the available base classes for the application type you are running.

Each base class provides several methods you can overide to configure additional plugin modules, or a custom logger to use while bootstrapping the host. Please refer to the samples for more information.

public static class Program
	public static async Task Main(string[] args)
		await ApplicationHost.RunAsync<ConsoleApplicationHost>(args);

		Console.WriteLine("Press any key to quit...");

All what's left to do is to run the host using one of the available static entry-points.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Fluxera.Extensions.Hosting.AspNetCore:

Package Downloads
Fluxera.Extensions.Hosting.Modules.AspNetCore The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

A module that enables ASP.NET Core.

Fluxera.Extensions.Hosting.AspNetCore.TestHost The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

A modular application host for the ASP.NET test host.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.3 47 2/22/2024
8.0.2 2,104 1/4/2024
8.0.1 427 11/23/2023
8.0.0 500 11/15/2023
7.1.9 451 7/23/2023
7.1.8 135 7/20/2023
7.1.7 430 6/21/2023
7.1.6 829 4/25/2023
7.1.5 1,113 4/24/2023
7.1.4 510 4/13/2023
7.1.3 601 3/16/2023
7.1.2 935 2/28/2023
7.1.1 654 1/26/2023
7.1.0 969 1/18/2023
7.0.6 1,654 12/22/2022
7.0.5 260 12/13/2022
7.0.4 1,390 12/9/2022
7.0.3 295 11/24/2022
7.0.2 287 11/15/2022
7.0.1 305 11/12/2022
7.0.0 301 11/9/2022
6.2.2 2,352 10/12/2022
6.2.1 3,666 10/9/2022
6.2.0 2,038 10/1/2022
6.1.1 2,036 9/20/2022
6.1.0 2,069 9/16/2022
6.0.17 2,079 9/15/2022
6.0.14 1,745 7/30/2022
6.0.13 1,731 6/30/2022
6.0.12 1,768 6/15/2022
6.0.11 1,805 6/7/2022
6.0.10 4,329 5/28/2022
6.0.9 6,822 5/10/2022
6.0.8 1,759 5/5/2022
6.0.7 403 4/20/2022
6.0.6 396 4/20/2022
6.0.5 395 4/11/2022
6.0.4 407 4/10/2022
6.0.3 400 3/24/2022
6.0.2 397 2/17/2022
6.0.1 261 12/23/2021