Modulight.Modules.Core 0.0.7

.NET 5.0
dotnet add package Modulight.Modules.Core --version 0.0.7
NuGet\Install-Package Modulight.Modules.Core -Version 0.0.7
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="Modulight.Modules.Core" Version="0.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Modulight.Modules.Core --version 0.0.7
#r "nuget: Modulight.Modules.Core, 0.0.7"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Modulight.Modules.Core as a Cake Addin
#addin nuget:?package=Modulight.Modules.Core&version=0.0.7

// Install Modulight.Modules.Core as a Cake Tool
#tool nuget:?package=Modulight.Modules.Core&version=0.0.7

Modulight.Modules.Core

Modulight is a light modular framework aimed to be low intrusive based on dependency injection for .NET 5, ASP.NET Core and Blazor.

Use modules

  1. Register modules.

For general modules:

services.AddModules(builder => {
    builder.AddModule<FooModule>();
});
  1. Configure the module initilizing & shutdown.
var host = services.GetModuleHost();
await host.Initialize();

// do something

await host.Shutdown();

// Or use context:

// context: IServiceProvider services (provided by package Modulight.Modules.Core)
await using var _ = await services.UseModuleHost();

// do something

Or use extension methods for hosting:

// Generic hosting. (provided by package Modulight.Modules.Hosting)
// in Program: Task Main(string[] args)
await CreateHostBuilder(args).Build().RunAsyncWithModules();

// WebAssembly hosting. (provided by package Modulight.Modules.Client.RazorComponents)
// in Program: Task Main(string[] args)
await builder.Build().RunAsyncWithModules();
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Modulight.Modules.Core:

Package Downloads
Modulight.Modules.Client.RazorComponents

Basic types for razor component client modules in Modulight modular framework.

Modulight.Modules.Server.AspNet

Basic types for AspNet server modules in Modulight modular framework.

Modulight.Modules.Server.GraphQL

Basic types for GraphQL server modules in Modulight modular framework.

Modulight.Modules.CommandLine

Basic types for command line modules in Modulight modular framework.

Modulight.Modules.Hosting

Hosting for Modulight modular framework.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.7 3,006 5/31/2021
0.0.7-preview.8 232 5/30/2021
0.0.6 742 5/30/2021
0.0.5 889 4/3/2021
0.0.5-preview.18 96 3/14/2021
0.0.5-preview.13 197 3/12/2021
0.0.5-preview.12 119 3/12/2021
0.0.5-preview.11 121 3/10/2021
0.0.5-preview.10 140 3/10/2021
0.0.5-preview.4 126 3/4/2021
0.0.5-preview.2 142 3/4/2021
0.0.4 825 3/4/2021
0.0.4-preview.40 170 2/22/2021
0.0.4-preview.30 247 2/21/2021
0.0.4-preview.28 134 2/20/2021
0.0.4-preview.25 249 2/20/2021
0.0.4-preview.6 134 2/6/2021
0.0.3 358 2/5/2021
0.0.3-preview.39 116 2/3/2021
0.0.3-preview.38 110 2/1/2021
0.0.3-preview.37 122 1/31/2021
0.0.2 367 1/29/2021
0.0.2-preview.36 173 1/17/2021
0.0.2-preview.34 133 1/16/2021
0.0.1-preview.30 129 1/13/2021
0.0.1-preview.29 144 1/13/2021
0.0.1-preview.28 117 1/12/2021
0.0.1-preview.25 119 1/11/2021