Cirreum.Runtime.ServiceProvider 1.0.6

dotnet add package Cirreum.Runtime.ServiceProvider --version 1.0.6
                    
NuGet\Install-Package Cirreum.Runtime.ServiceProvider -Version 1.0.6
                    
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="Cirreum.Runtime.ServiceProvider" Version="1.0.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cirreum.Runtime.ServiceProvider" Version="1.0.6" />
                    
Directory.Packages.props
<PackageReference Include="Cirreum.Runtime.ServiceProvider" />
                    
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 Cirreum.Runtime.ServiceProvider --version 1.0.6
                    
#r "nuget: Cirreum.Runtime.ServiceProvider, 1.0.6"
                    
#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 Cirreum.Runtime.ServiceProvider@1.0.6
                    
#: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=Cirreum.Runtime.ServiceProvider&version=1.0.6
                    
Install as a Cake Addin
#tool nuget:?package=Cirreum.Runtime.ServiceProvider&version=1.0.6
                    
Install as a Cake Tool

Cirreum.Runtime.ServiceProvider

NuGet Version NuGet Downloads GitHub Release License .NET

Simplified service provider registration for ASP.NET Core applications

Overview

Cirreum.Runtime.ServiceProvider provides a streamlined approach to registering and configuring service providers in ASP.NET Core applications. It extends the HostApplicationBuilder with a generic, type-safe method for registering service providers with built-in configuration binding, health checks, and duplicate prevention.

Key Features

  • Type-safe Registration - Generic extension method with strong typing for settings and health options
  • Configuration Binding - Automatic binding from appsettings.json using a consistent path pattern
  • Health Check Integration - Built-in support for ASP.NET Core health checks
  • Duplicate Prevention - Automatic detection and prevention of duplicate provider registrations
  • Deferred Logging - Initialization tracking with deferred logging support

Installation

dotnet add package Cirreum.Runtime.ServiceProvider

Usage

Register a service provider in your Program.cs:

var builder = WebApplication.CreateBuilder(args);

// Register a service provider with configuration
builder.RegisterServiceProvider<MyRegistrar, MySettings, MyInstanceSettings, MyHealthOptions>(
    "MyProvider",
    "MyProviderType"
);

Configure the provider in appsettings.json:

{
  "Cirreum": {
    "MyProviderType": {
      "Providers": {
        "MyProvider": {
          "Setting1": "value1",
          "Setting2": 123
        }
      }
    }
  }
}

Configuration Pattern

Service providers follow a consistent configuration path:

  • Path: Cirreum:{ProviderType}:Providers:{ProviderName}
  • Provider Type: Logical grouping of similar providers
  • Provider Name: Unique identifier for each provider instance

Requirements

  • .NET 10.0 or later
  • ASP.NET Core application

Contribution Guidelines

  1. Be conservative with new abstractions
    The API surface must remain stable and meaningful.

  2. Limit dependency expansion
    Only add foundational, version-stable dependencies.

  3. Favor additive, non-breaking changes
    Breaking changes ripple through the entire ecosystem.

  4. Include thorough unit tests
    All primitives and patterns should be independently testable.

  5. Document architectural decisions
    Context and reasoning should be clear for future maintainers.

  6. Follow .NET conventions
    Use established patterns from Microsoft.Extensions.* libraries.

Versioning

Cirreum.Runtime.ServiceProvider follows Semantic Versioning:

  • Major - Breaking API changes
  • Minor - New features, backward compatible
  • Patch - Bug fixes, backward compatible

Given its foundational role, major version bumps are rare and carefully considered.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Cirreum Foundation Framework
Layered simplicity for modern .NET

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on Cirreum.Runtime.ServiceProvider:

Package Downloads
Cirreum.Runtime.Persistence

The Runtime Persistence service configuration.

Cirreum.Runtime.Messaging

The Runtime Messaging service configuration.

Cirreum.Runtime.Communications

The Runtime Communictions service configuration.

Cirreum.Runtime.Storage

The Runtime Storage service configuration.

Cirreum.Runtime.Persistence.Azure

The Runtime Persistence service configuration for Azure.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.6 226 1/28/2026
1.0.5 158 1/21/2026
1.0.4 480 12/20/2025
1.0.3 300 12/19/2025
1.0.2 313 12/16/2025
1.0.1 343 11/24/2025
1.0.0 208 11/23/2025