ArnabDeveloper.HttpHealthCheck
1.0.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ArnabDeveloper.HttpHealthCheck --version 1.0.4
NuGet\Install-Package ArnabDeveloper.HttpHealthCheck -Version 1.0.4
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="ArnabDeveloper.HttpHealthCheck" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ArnabDeveloper.HttpHealthCheck --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ArnabDeveloper.HttpHealthCheck, 1.0.4"
#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.
// Install ArnabDeveloper.HttpHealthCheck as a Cake Addin #addin nuget:?package=ArnabDeveloper.HttpHealthCheck&version=1.0.4 // Install ArnabDeveloper.HttpHealthCheck as a Cake Tool #tool nuget:?package=ArnabDeveloper.HttpHealthCheck&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HTTP health check
This is a library to check health of HTTP endpoint. It has been hosted in NuGet. Use below command to install this in your .NET application.
dotnet add package ArnabDeveloper.HttpHealthCheck
Use any HTTP endpoint to check their health.
IHttpClientFactory httpClientFactory; // Use ASP.NET DI to build this
IHealthCheck healthCheck = new HealthCheck(httpClientFactory);
string urlToCheck = "<your http url>";
bool isApiHealthy = await _healthCheck.IsHealthyAsync(urlToCheck);
if (isApiHealthy)
{
// URL is healthy
}
else
{
// URL is unhealthy
}
There is a dashboard app which uses the library to check health of some http endpoints. This is to show how you can use this library in your app.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.Extensions.Http (>= 6.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on ArnabDeveloper.HttpHealthCheck:
Package | Downloads |
---|---|
Arc.HttpHealthCheckDashboard
HTTP health check dashboard |
|
ArnabDeveloper.HttpHealthCheck.DI
HTTP health check dependency injection for ASP.NET |
GitHub repositories
This package is not used by any popular GitHub repositories.
dotnet 6 upgrade