Uniform.SDK
1.0.41-preview
dotnet add package Uniform.SDK --version 1.0.41-preview
NuGet\Install-Package Uniform.SDK -Version 1.0.41-preview
<PackageReference Include="Uniform.SDK" Version="1.0.41-preview" />
<PackageVersion Include="Uniform.SDK" Version="1.0.41-preview" />
<PackageReference Include="Uniform.SDK" />
paket add Uniform.SDK --version 1.0.41-preview
#r "nuget: Uniform.SDK, 1.0.41-preview"
#:package Uniform.SDK@1.0.41-preview
#addin nuget:?package=Uniform.SDK&version=1.0.41-preview&prerelease
#tool nuget:?package=Uniform.SDK&version=1.0.41-preview&prerelease
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"];
}
}
Links
| 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.Hosting (>= 10.0.5)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Http (>= 10.0.5)
- Uniform.Foundations (>= 1.0.41-preview)
- Uniform.Messaging (>= 1.0.41-preview)
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 |