Muonroi.Core.Abstractions
2.0.2
dotnet add package Muonroi.Core.Abstractions --version 2.0.2
NuGet\Install-Package Muonroi.Core.Abstractions -Version 2.0.2
<PackageReference Include="Muonroi.Core.Abstractions" Version="2.0.2" />
<PackageVersion Include="Muonroi.Core.Abstractions" Version="2.0.2" />
<PackageReference Include="Muonroi.Core.Abstractions" />
paket add Muonroi.Core.Abstractions --version 2.0.2
#r "nuget: Muonroi.Core.Abstractions, 2.0.2"
#:package Muonroi.Core.Abstractions@2.0.2
#addin nuget:?package=Muonroi.Core.Abstractions&version=2.0.2
#tool nuget:?package=Muonroi.Core.Abstractions&version=2.0.2
Muonroi.Core.Abstractions
Definitive interface and exception contracts for the Muonroi ecosystem.
Overview
Declares foundational interfaces like IContextResolver, ISystemExecutionContext, standard exception types (MException, MNotFoundException), and guard classes like MGuard.
Features
- Execution Context: Defines
ISystemExecutionContextandIContextResolverfor tracking user/tenant flow. - Exception Hierarchy: Base custom exception standard with classes like
MExceptionandMNotFoundException. - Defensive Programming: Includes the
MGuardutility to quickly validate state and arguments. - Ecosystem Registration: Exposes
MEcosystemRegistryfor system-wide capability mapping.
Installation
dotnet add package Muonroi.Core.Abstractions
Quick Start
public class MyService
{
public void ProcessData(string data)
{
MGuard.NotNullOrEmpty(data, nameof(data));
// Process
}
}
Ecosystem Combinations
- With Muonroi.Core: The concrete service extensions fulfill the ecosystem interfaces specified here.
- Full Stack Example:
builder.Services.AddEcosystemRegistry(); // Defined in MEcosystemRegistry extensions
Samples
Check out the Samples directory for full examples.
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.3)
- Microsoft.IdentityModel.Tokens (>= 8.0.1)
- Muonroi.Logging.Abstractions (>= 2.0.2)
- System.IdentityModel.Tokens.Jwt (>= 8.0.1)
NuGet packages (51)
Showing the top 5 NuGet packages that depend on Muonroi.Core.Abstractions:
| Package | Downloads |
|---|---|
|
Muonroi.RuleEngine.Abstractions
Rule Engine Abstractions for Muonroi.BuildingBlock |
|
|
Muonroi.RuleEngine.Core
Rule Engine Core implementation for Muonroi.BuildingBlock |
|
|
Muonroi.Quota.Abstractions
Quota tracking contracts and in-memory implementations for Muonroi multi-tenant applications. Contains ITenantQuotaTracker, ITenantQuotaStore, QuotaType, TenantQuota models and presets. |
|
|
Muonroi.Tenancy.Abstractions
Multi-tenancy contracts: ITenantContext, ITenantIdResolver, and shared tenant models for Muonroi applications. |
|
|
Muonroi.Tenancy.Core
Shared-database multi-tenancy core: EF Core global filters, tenant context propagation, and quota tracking. |
GitHub repositories
This package is not used by any popular GitHub repositories.