Uniform.SDK 1.0.41-preview

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

Uniform.Service

The main entry point for the Uniform microservice framework.

Installation

dotnet add package Uniform.SDK
dotnet add package Uniform.Messaging.RabbitMq

Quick start

1. Define your service

public class MyService : IUniform
{
    public void RegisterServices(IServiceCollection services)
    {
        // Register your custom services here
    }
}

2. Bootstrap in Program.cs

await UniformService<MyService>
    .Initialise()
    .WithModule<RabbitMqModule>() // Optional, but it's not a microservice without an AMQP transport!
    .Run();

That's it. Any IConsumer<T> in the assembly is discovered and wired up automatically.

Sending messages

Inject IPublisher wherever you need to send:

public class MyConsumer(IPublisher publisher) : IConsumer<TriggerReport>
{
    public async Task Consume(TriggerReport message)
    {
        await publisher.Publish(new ReportGenerated(message.ReportId));
    }
}

Consuming messages

public class ReportGeneratedConsumer : IConsumer<ReportGenerated>
{
    public async Task Consume(ReportGenerated message)
    {
        // handle the message
    }
}

No registration required — the framework discovers it automatically.

Background services

public class HealthCheckService : IRecurringBackgroundService
{
    public int IntervalMs => 30_000;

    public async Task ExecuteAsync()
    {
        // runs every 30 seconds
    }
}

Register it on the builder:

await UniformService<MyService>
    .Initialise()
    .WithModule<RabbitMqModule>()
    .AddBackgroundService<HealthCheckService>()
    .Run();

Startup hooks

public class MyStartupHook(MyDbContext db) : IStartupHook
{
    public async Task OnStartup()
    {
        await db.Database.MigrateAsync();
    }
}

Register in your service module:

services.AddScoped<IStartupHook, MyStartupHook>();

Configuration

Configuration is read from the standard .NET configuration stack (appsettings.json, environment variables, etc). Access it via ISettings:

public class MyConsumer(ISettings settings) : IConsumer<MyMessage>
{
    public Task Consume(MyMessage message)
    {
        var value = settings["MySection:MyKey"];
    }
}
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 (2)

Showing the top 2 NuGet packages that depend on Uniform.SDK:

Package Downloads
Uniform.Integrations.Stripe

Stripe payment integration module for the Uniform microservice framework.

Uniform.Integrations.Zapier

Zapier integration for the Uniform microservice framework — send outgoing webhook payloads and receive incoming Zapier triggers via your normal consumer pipeline.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.41-preview 54 9/11/2026
1.0.40-preview 86 7/21/2026
1.0.39-preview 70 6/28/2026
1.0.38-preview 78 6/26/2026
1.0.37-preview 74 6/6/2026
1.0.36-preview 61 5/25/2026
1.0.35-preview 60 5/18/2026
1.0.34-preview 77 5/10/2026
1.0.33-preview 77 5/9/2026
1.0.32-preview 69 5/8/2026
1.0.31-preview 68 5/8/2026
1.0.30-preview 89 5/8/2026