Pulse.Mqtt.DependencyInjection
2.29.0
dotnet add package Pulse.Mqtt.DependencyInjection --version 2.29.0
NuGet\Install-Package Pulse.Mqtt.DependencyInjection -Version 2.29.0
<PackageReference Include="Pulse.Mqtt.DependencyInjection" Version="2.29.0" />
<PackageVersion Include="Pulse.Mqtt.DependencyInjection" Version="2.29.0" />
<PackageReference Include="Pulse.Mqtt.DependencyInjection" />
paket add Pulse.Mqtt.DependencyInjection --version 2.29.0
#r "nuget: Pulse.Mqtt.DependencyInjection, 2.29.0"
#:package Pulse.Mqtt.DependencyInjection@2.29.0
#addin nuget:?package=Pulse.Mqtt.DependencyInjection&version=2.29.0
#tool nuget:?package=Pulse.Mqtt.DependencyInjection&version=2.29.0
Pulse.Mqtt.DependencyInjection
Hosting integration for Pulse MQTT clients. Use it when an application already uses Microsoft.Extensions.DependencyInjection, hosted services, options binding, logging, and health checks.
Install
dotnet add package Pulse.Mqtt.DependencyInjection
Register a named client
builder.Services
.AddPulseMqttClient("telemetry", options =>
{
options.Host = "broker.example.com";
options.Port = 8883;
options.UseTls = true;
options.ClientId = "telemetry-worker";
})
.AddHealthCheck();
The registration creates a singleton ResilientMqttClient, an IPulseMqttClientFactory, hosted lifecycle wiring, and optional health checks for that client.
Resolve a client
var client = provider
.GetRequiredService<IPulseMqttClientFactory>()
.GetClient("telemetry");
Named clients can use different serializers, transports, reconnect strategies, durable stores, and last-will providers.
builder.Services
.AddPulseMqttClient("telemetry", configure)
.UseSerializer(_ => new JsonMqttSerializer(AppJsonContext.Default))
.UseMessageStore(_ => messageStore)
.UseSessionStore(_ => sessionStore);
Configuration binding
{
"Mqtt": {
"Telemetry": {
"Host": "broker.example.com",
"Port": 8883,
"UseTls": true,
"ClientId": "telemetry-worker"
}
}
}
builder.Services.AddPulseMqttClient(
"telemetry",
builder.Configuration.GetSection("Mqtt:Telemetry").Bind);
Full docs: https://araxis.github.io/pulse-mqtt/packages/dependency-injection
| 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 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.DependencyInjection.Abstractions (>= 9.0.17)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 9.0.17)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.17)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.17)
- Microsoft.Extensions.Options (>= 9.0.17)
- Pulse.Mqtt.Client (>= 2.29.0)
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.17)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 9.0.17)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.17)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.17)
- Microsoft.Extensions.Options (>= 9.0.17)
- Pulse.Mqtt.Client (>= 2.29.0)
- System.IO.Pipelines (>= 9.0.17)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Pulse.Mqtt.DependencyInjection:
| Package | Downloads |
|---|---|
|
Pulse.Mqtt.Endpoints
Minimal-API-style MapMqtt endpoints for the Pulse MQTT client: route templates with typed constraints, per-message service scopes, and subscribe-on-map. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.29.0 | 135 | 7/9/2026 |
| 2.29.0-preview.219 | 64 | 7/9/2026 |
| 2.29.0-preview.218 | 68 | 7/9/2026 |
| 2.29.0-preview.217 | 67 | 7/6/2026 |
| 2.28.0 | 122 | 7/6/2026 |
| 2.28.0-preview.215 | 58 | 7/6/2026 |
| 2.28.0-preview.214 | 60 | 7/6/2026 |
| 2.28.0-preview.213 | 64 | 7/6/2026 |
| 2.28.0-preview.212 | 61 | 7/6/2026 |
| 2.28.0-preview.211 | 61 | 7/4/2026 |
| 2.28.0-preview.210 | 74 | 7/4/2026 |
| 2.28.0-preview.209 | 66 | 7/4/2026 |
| 2.28.0-preview.208 | 70 | 7/4/2026 |
| 2.27.0 | 127 | 7/4/2026 |
| 2.27.0-preview.206 | 64 | 7/4/2026 |
| 2.27.0-preview.205 | 72 | 7/4/2026 |
| 2.27.0-preview.204 | 77 | 7/3/2026 |
| 2.27.0-preview.203 | 60 | 7/3/2026 |
| 2.27.0-preview.202 | 61 | 7/3/2026 |
| 2.27.0-preview.201 | 64 | 7/3/2026 |