![]() |
VOOZH | about |
dotnet add package NetEvolve.HealthChecks.Azure.ServiceBus --version 5.13.335
NuGet\Install-Package NetEvolve.HealthChecks.Azure.ServiceBus -Version 5.13.335
<PackageReference Include="NetEvolve.HealthChecks.Azure.ServiceBus" Version="5.13.335" />
<PackageVersion Include="NetEvolve.HealthChecks.Azure.ServiceBus" Version="5.13.335" />Directory.Packages.props
<PackageReference Include="NetEvolve.HealthChecks.Azure.ServiceBus" />Project file
paket add NetEvolve.HealthChecks.Azure.ServiceBus --version 5.13.335
#r "nuget: NetEvolve.HealthChecks.Azure.ServiceBus, 5.13.335"
#:package NetEvolve.HealthChecks.Azure.ServiceBus@5.13.335
#addin nuget:?package=NetEvolve.HealthChecks.Azure.ServiceBus&version=5.13.335Install as a Cake Addin
#tool nuget:?package=NetEvolve.HealthChecks.Azure.ServiceBus&version=5.13.335Install as a Cake Tool
This package provides a health check for Azure Service Bus, based on the Azure.Messaging.ServiceBus package. The main purpose is to check that the Azure Service Bus namespace is reachable and that the client can connect to it.
💡 This package is available for .NET 8.0 and later.
To use this package, you need to add the package to your project. You can do this by using the NuGet package manager or by using the dotnet CLI.
dotnet add package NetEvolve.HealthChecks.Azure.ServiceBus
After adding the package, you need to import the namespace NetEvolve.HealthChecks.Azure.ServiceBus and add the health check to the service collection.
using NetEvolve.HealthChecks.Azure.ServiceBus;
Therefore, you can use two different approaches. In both approaches you have to provide a name for the health check.
The health check is a readiness check. It will check that the Azure ServiceBus queue is reachable and that the client can connect to it. If the service needs longer than the configured timeout to respond, the health check will return Degraded. If the service is not reachable, the health check will return Unhealthy.
name: The name of the health check. The name is used to identify the configuration object. It is required and must be unique within the application.options: The configuration options for the health check. If you don't provide any options, the health check will use the configuration based approach.tags: The tags for the health check. The tags azure, servicebus and messaging are always used as default and combined with the user input. You can provide additional tags to group or filter the health checks.The first one is to use the configuration based approach. Therefore, you have to add the configuration section HealthChecks:AzureServiceBusQueue to your appsettings.json file.
var builder = services.AddHealthChecks();
builder.AddAzureServiceBusQueue("<name>");
The configuration looks like this:
{
..., // other configuration
"HealthChecks": {
"AzureServiceBusQueue": {
"<name>": {
"KeyedService": "<key>", // optional, must be given if you want to access a keyed service
"ConnectionString": "<connection-string>", // required
"Mode": "<mode>", // required, to specify the client creation mode, either `ServiceProvider`, `DefaultAzureCredentials` or `ConnectionString`
"QueueName": "<queue-name>", // required
"Timeout": "<timeout>" // optional, default is 100 milliseconds
}
}
}
}
The second one is to use the options based approach. Therefore, you have to create an instance of AzureServiceBusQueueOptions and provide the configuration.
var builder = services.AddHealthChecks();
builder.AddAzureServiceBusQueue("<name>", options =>
{
options.KeyedService = "<key>"; // optional, must be given if you want to access a keyed service
options.ConnectionString = "<connection-string>";
options.Mode = ClientCreationMode.ServiceProvider; // or DefaultAzureCredentials or ConnectionString
options.QueueName = "<queue-name>";
options.Timeout = TimeSpan.FromMilliseconds(100); // optional, default is 100 milliseconds
});
The health check is a readiness check. It will check that the Azure ServiceBus subscription is reachable and that the client can connect to it. If the service needs longer than the configured timeout to respond, the health check will return Degraded. If the service is not reachable, the health check will return Unhealthy.
name: The name of the health check. The name is used to identify the configuration object. It is required and must be unique within the application.options: The configuration options for the health check. If you don't provide any options, the health check will use the configuration based approach.tags: The tags for the health check. The tags azure, servicebus and messaging are always used as default and combined with the user input. You can provide additional tags to group or filter the health checks.The first one is to use the configuration based approach. Therefore, you have to add the configuration section HealthChecks:AzureServiceBusSubscription to your appsettings.json file.
var builder = services.AddHealthChecks();
builder.AddAzureServiceBusSubscription("<name>");
The configuration looks like this:
{
..., // other configuration
"HealthChecks": {
"AzureServiceBusSubscription": {
"<name>": {
"KeyedService": "<key>", // optional, must be given if you want to access a keyed service
"ConnectionString": "<connection-string>", // required
"Mode": "<mode>", // required, to specify the client creation mode, either `ServiceProvider`, `DefaultAzureCredentials` or `ConnectionString`
"TopicName": "<topic-name>", // required
"SubscriptionName": "<subscription-name>", // required
"Timeout": "<timeout>" // optional, default is 100 milliseconds
}
}
}
}
The second one is to use the options based approach. Therefore, you have to create an instance of AzureServiceBusSubscriptionOptions and provide the configuration.
var builder = services.AddHealthChecks();
builder.AddAzureServiceBusSubscription("<name>", options =>
{
options.KeyedService = "<key>"; // optional, must be given if you want to access a keyed service
options.ConnectionString = "<connection-string>";
options.Mode = ClientCreationMode.ServiceProvider; // or DefaultAzureCredentials or ConnectionString
options.TopicName = "<topic-name>";
options.SubscriptionName = "<subscription-name>";
options.Timeout = TimeSpan.FromMilliseconds(100); // optional, default is 100 milliseconds
});
The health check is a readiness check. It will check that the Azure ServiceBus topic is reachable and that the client can connect to it. If the service needs longer than the configured timeout to respond, the health check will return Degraded. If the service is not reachable, the health check will return Unhealthy.
name: The name of the health check. The name is used to identify the configuration object. It is required and must be unique within the application.options: The configuration options for the health check. If you don't provide any options, the health check will use the configuration based approach.tags: The tags for the health check. The tags azure, servicebus and messaging are always used as default and combined with the user input. You can provide additional tags to group or filter the health checks.The first one is to use the configuration based approach. Therefore, you have to add the configuration section HealthChecks:AzureServiceBusTopic to your appsettings.json file.
var builder = services.AddHealthChecks();
builder.AddAzureServiceBusTopic("<name>");
The configuration looks like this:
{
..., // other configuration
"HealthChecks": {
"AzureServiceBusTopic": {
"<name>": {
"KeyedService": "<key>", // optional, must be given if you want to access a keyed service
"ConnectionString": "<connection-string>", // required
"Mode": "<mode>", // required, to specify the client creation mode, either `ServiceProvider`, `DefaultAzureCredentials` or `ConnectionString`
"TopicName": "<topic-name>", // required
"Timeout": "<timeout>" // optional, default is 100 milliseconds
}
}
}
}
The second one is to use the options based approach. Therefore, you have to create an instance of AzureServiceBusTopicOptions and provide the configuration.
var builder = services.AddHealthChecks();
builder.AddAzureServiceBusTopic("<name>", options =>
{
options.KeyedService = "<key>"; // optional, must be given if you want to access a keyed service
options.ConnectionString = "<connection-string>";
options.Mode = ClientCreationMode.ServiceProvider; // or DefaultAzureCredentials or ConnectionString
options.TopicName = "<topic-name>";
options.Timeout = TimeSpan.FromMilliseconds(100); // optional, default is 100 milliseconds
});
var builder = services.AddHealthChecks();
builder.AddAzureServiceBus("<name>", options => ..., "azure-servicebus");
This project is licensed under the MIT License - see the LICENSE file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on NetEvolve.HealthChecks.Azure.ServiceBus:
| Package | Downloads |
|---|---|
|
NetEvolve.HealthChecks.Azure
Contains HealthChecks for various Azure services. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.13.335 | 119 | 6/1/2026 |
| 5.13.321 | 118 | 5/21/2026 |
| 5.13.198 | 134 | 4/7/2026 |
| 5.13.51 | 208 | 3/16/2026 |
| 5.13.1 | 129 | 3/3/2026 |
| 5.11.2 | 1,298 | 1/1/2026 |
| 5.10.32 | 144 | 12/29/2025 |
| 5.9.5 | 1,539 | 12/15/2025 |
| 5.8.0 | 1,490 | 12/8/2025 |
| 5.7.10 | 412 | 12/8/2025 |
| 5.5.2 | 629 | 11/29/2025 |
| 5.0.0 | 444 | 11/20/2025 |
| 4.20.61 | 180 | 9/27/2025 |
| 4.15.1 | 337 | 6/13/2025 |
| 4.14.3 | 367 | 6/9/2025 |
| 4.12.3 | 229 | 6/5/2025 |
| 4.3.0 | 217 | 5/26/2025 |