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
                    
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="Muonroi.Core.Abstractions" Version="2.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Muonroi.Core.Abstractions" Version="2.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Muonroi.Core.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Muonroi.Core.Abstractions --version 2.0.2
                    
#r "nuget: Muonroi.Core.Abstractions, 2.0.2"
                    
#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.
#:package Muonroi.Core.Abstractions@2.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Muonroi.Core.Abstractions&version=2.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Muonroi.Core.Abstractions&version=2.0.2
                    
Install as a Cake Tool

Muonroi.Core.Abstractions

NuGet Status NuGet Download

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 ISystemExecutionContext and IContextResolver for tracking user/tenant flow.
  • Exception Hierarchy: Base custom exception standard with classes like MException and MNotFoundException.
  • Defensive Programming: Includes the MGuard utility to quickly validate state and arguments.
  • Ecosystem Registration: Exposes MEcosystemRegistry for 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
2.0.2 1,178 8/26/2026
2.0.1 1,009 8/26/2026
2.0.0 1,018 8/14/2026