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
<PackageReference Include="Modulight.Modules.Core" Version="0.0.7" />
paket add Modulight.Modules.Core --version 0.0.7
#r "nuget: Modulight.Modules.Core, 0.0.7"
// 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
- Register modules.
For general modules:
services.AddModules(builder => {
builder.AddModule<FooModule>();
});
- 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 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. |
-
net5.0
- Microsoft.Extensions.DependencyInjection (>= 5.0.1)
- Microsoft.Extensions.Logging (>= 5.0.0)
- Microsoft.Extensions.Options (>= 5.0.0)
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 | 7,238 | 5/31/2021 |
0.0.7-preview.8 | 283 | 5/30/2021 |
0.0.6 | 1,915 | 5/30/2021 |
0.0.5 | 2,415 | 4/3/2021 |
0.0.5-preview.18 | 152 | 3/14/2021 |
0.0.5-preview.13 | 246 | 3/12/2021 |
0.0.5-preview.12 | 169 | 3/12/2021 |
0.0.5-preview.11 | 172 | 3/10/2021 |
0.0.5-preview.10 | 190 | 3/10/2021 |
0.0.5-preview.4 | 174 | 3/4/2021 |
0.0.5-preview.2 | 188 | 3/4/2021 |
0.0.4 | 2,019 | 3/4/2021 |
0.0.4-preview.40 | 532 | 2/22/2021 |
0.0.4-preview.30 | 300 | 2/21/2021 |
0.0.4-preview.28 | 185 | 2/20/2021 |
0.0.4-preview.25 | 301 | 2/20/2021 |
0.0.4-preview.6 | 183 | 2/6/2021 |
0.0.3 | 835 | 2/5/2021 |
0.0.3-preview.39 | 165 | 2/3/2021 |
0.0.3-preview.38 | 160 | 2/1/2021 |
0.0.3-preview.37 | 165 | 1/31/2021 |
0.0.2 | 872 | 1/29/2021 |
0.0.2-preview.36 | 220 | 1/17/2021 |
0.0.2-preview.34 | 186 | 1/16/2021 |
0.0.1-preview.30 | 177 | 1/13/2021 |
0.0.1-preview.29 | 191 | 1/13/2021 |
0.0.1-preview.28 | 169 | 1/12/2021 |
0.0.1-preview.25 | 168 | 1/11/2021 |