CommonHealthChecksExtensions.AddManualHealthCheck Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddManualHealthCheck(IHealthChecksBuilder, IEnumerable<String>) |
Registers a health check provider that enables manual control of the application's health. |
AddManualHealthCheck(IHealthChecksBuilder, String[]) |
Registers a health check provider that enables manual control of the application's health. |
AddManualHealthCheck(IHealthChecksBuilder, IEnumerable<String>)
Registers a health check provider that enables manual control of the application's health.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddManualHealthCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, System::Collections::Generic::IEnumerable<System::String ^> ^ tags);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddManualHealthCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, System.Collections.Generic.IEnumerable<string> tags);
static member AddManualHealthCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * seq<string> -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddManualHealthCheck (builder As IHealthChecksBuilder, tags As IEnumerable(Of String)) As IHealthChecksBuilder
Parameters
- builder
- IHealthChecksBuilder
The builder to add the provider to.
- tags
- IEnumerable<String>
A list of tags that can be used to filter health checks.
Returns
The value of builder
.
Exceptions
builder
or tags
is null
.
Applies to
AddManualHealthCheck(IHealthChecksBuilder, String[])
Registers a health check provider that enables manual control of the application's health.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddManualHealthCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, ... cli::array <System::String ^> ^ tags);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddManualHealthCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, params string[] tags);
static member AddManualHealthCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * string[] -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddManualHealthCheck (builder As IHealthChecksBuilder, ParamArray tags As String()) As IHealthChecksBuilder
Parameters
- builder
- IHealthChecksBuilder
The builder to add the provider to.
- tags
- String[]
A list of tags that can be used to filter health checks.
Returns
The value of builder
.
Exceptions
builder
or tags
is null
.