Rwx.Core
0.3.1
dotnet add package Rwx.Core --version 0.3.1
NuGet\Install-Package Rwx.Core -Version 0.3.1
<PackageReference Include="Rwx.Core" Version="0.3.1" />
<PackageVersion Include="Rwx.Core" Version="0.3.1" />
<PackageReference Include="Rwx.Core" />
paket add Rwx.Core --version 0.3.1
#r "nuget: Rwx.Core, 0.3.1"
#:package Rwx.Core@0.3.1
#addin nuget:?package=Rwx.Core&version=0.3.1
#tool nuget:?package=Rwx.Core&version=0.3.1
Rwx.Core
Core modularity, conventional dependency injection, bootstrap logging, and reusable hosted-service primitives for the Rwx framework.
Install
dotnet add package Rwx.Core --version 0.1.0
Quick start
Create a root module, declare its dependencies, and initialize it from either WebApplicationBuilder or HostApplicationBuilder.
using Rwx.Core.Modularity;
public sealed class AppModule : RwxModule
{
}
RwxApplication rxApplication = builder.AddApplication<AppModule>();
using IHost host = builder.Build();
await rxApplication.StartAsync(host.Services);
try
{
await host.RunAsync();
}
finally
{
await rxApplication.StopAsync(host.Services);
}
Use [DependOn<TModule>] to build the module graph. Each module runs pre-configure, configure, post-configure, initialization, and shutdown phases in dependency order.
Boundaries
Rwx.Core is infrastructure-neutral. Modules may register services and validate configuration, but must not perform I/O during registration or hide application/business rules in lifecycle hooks. Declare every dependency with [DependOn<TModule>]; do not depend on the current order of extension-method calls.
AddRwxConventionalRegistration() scans assemblies for ITransientDependency, IScopedDependency, and ISingletonDependency implementations. Use ExposeServicesAttribute to control exposed interfaces or DisableConventionalRegistrationAttribute to opt out.
Requirements
- .NET 10 or later
Microsoft.Extensions.Hosting
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Logging (>= 10.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.9)
NuGet packages (12)
Showing the top 5 NuGet packages that depend on Rwx.Core:
| Package | Downloads |
|---|---|
|
Rwx.Application
Package Description |
|
|
Rwx.UnitOfWork
Package Description |
|
|
Rwx.Security
Package Description |
|
|
Rwx.Outbox
Package Description |
|
|
Rwx.EventBus.RabbitMq
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.