Modulight.Modules.Core 0.0.7

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 and Polyglot Notebooks. 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

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed.  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)
Included target framework(s) (in package)
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 6,418 5/31/2021
0.0.7-preview.8 274 5/30/2021
0.0.6 1,818 5/30/2021
0.0.5 2,305 4/3/2021
0.0.5-preview.18 141 3/14/2021
0.0.5-preview.13 235 3/12/2021
0.0.5-preview.12 159 3/12/2021
0.0.5-preview.11 161 3/10/2021
0.0.5-preview.10 179 3/10/2021
0.0.5-preview.4 164 3/4/2021
0.0.5-preview.2 181 3/4/2021
0.0.4 1,923 3/4/2021
0.0.4-preview.40 512 2/22/2021
0.0.4-preview.30 290 2/21/2021
0.0.4-preview.28 174 2/20/2021
0.0.4-preview.25 290 2/20/2021
0.0.4-preview.6 173 2/6/2021
0.0.3 759 2/5/2021
0.0.3-preview.39 154 2/3/2021
0.0.3-preview.38 150 2/1/2021
0.0.3-preview.37 156 1/31/2021
0.0.2 818 1/29/2021
0.0.2-preview.36 210 1/17/2021
0.0.2-preview.34 175 1/16/2021
0.0.1-preview.30 167 1/13/2021
0.0.1-preview.29 181 1/13/2021
0.0.1-preview.28 159 1/12/2021
0.0.1-preview.25 158 1/11/2021