Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 624 Bytes

Ev.ServiceBus.HealthChecks.md

File metadata and controls

19 lines (14 loc) · 624 Bytes

Ev.ServiceBus.HealthChecks

This NuGet integrates Ev.ServiceBus with AspNetCore.HealthChecks.AzureServiceBus. Every resource registered within Ev.ServiceBus will be added as a health check for the application.

Initialization

To make it work you just have to call .AddEvServiceBusChecks() when adding health checks.

public void ConfigureServices(IServiceCollection services)
{
    // Initialize ServiceBus
    
    // Setup health checks
    services.AddHealthChecks()
        .AddEvServiceBusChecks("Custom tag 1", "Custom Tag 2");
}