Sparkdo.MassHub.Hosting
1.0.3
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Sparkdo.MassHub.Hosting --version 1.0.3
NuGet\Install-Package Sparkdo.MassHub.Hosting -Version 1.0.3
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="Sparkdo.MassHub.Hosting" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sparkdo.MassHub.Hosting" Version="1.0.3" />
<PackageReference Include="Sparkdo.MassHub.Hosting" />
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 Sparkdo.MassHub.Hosting --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sparkdo.MassHub.Hosting, 1.0.3"
#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 Sparkdo.MassHub.Hosting@1.0.3
#: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=Sparkdo.MassHub.Hosting&version=1.0.3
#tool nuget:?package=Sparkdo.MassHub.Hosting&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Sparkdo.MassHub.Hosting
Sparkdo 消息总线托管库,提供消息总线的健康检查集成功能。
功能特性
- 消息总线健康检查:通过
HealthRequest/HealthResponse实现消息总线存活探测 - ASP.NET Core 集成:与
Microsoft.Extensions.Diagnostics.HealthChecks无缝集成,支持 ready/live 标签 - 内置请求处理器:自动注册
HealthRequestHandler,无需手动编写处理逻辑 - 可指定目标端点:支持将健康检查请求路由到特定端点
安装
dotnet add package Sparkdo.MassHub.Hosting
使用示例
注册健康检查
var builder = services.AddMessageBusHostedService();
// 在消息总线主机上启用健康检查支持
builder.AddHealthCheck();
// 在 ASP.NET Core 健康检查中注册消息总线检查
services.AddHealthChecks()
.AddMessageBus(); // 可选传入 endpoint Uri 指定目标端点
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Npgsql (>= 10.0.0)
- OpenTelemetry (>= 1.15.3)
- Polly (>= 8.6.6)
- Sparkdo.MassHub (>= 1.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.4-preview.3 | 75 | 6/8/2026 |
| 1.0.4-preview.2 | 70 | 6/7/2026 |
| 1.0.4-preview.1 | 71 | 6/7/2026 |
| 1.0.3 | 137 | 6/6/2026 |