Simple.Service.Monitoring.Library 1.0.10

There is a newer version of this package available.
See the version list below for details.
dotnet add package Simple.Service.Monitoring.Library --version 1.0.10
                    
NuGet\Install-Package Simple.Service.Monitoring.Library -Version 1.0.10
                    
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="Simple.Service.Monitoring.Library" Version="1.0.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Simple.Service.Monitoring.Library" Version="1.0.10" />
                    
Directory.Packages.props
<PackageReference Include="Simple.Service.Monitoring.Library" />
                    
Project file
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 Simple.Service.Monitoring.Library --version 1.0.10
                    
#r "nuget: Simple.Service.Monitoring.Library, 1.0.10"
                    
#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.
#addin nuget:?package=Simple.Service.Monitoring.Library&version=1.0.10
                    
Install as a Cake Addin
#tool nuget:?package=Simple.Service.Monitoring.Library&version=1.0.10
                    
Install as a Cake Tool

Simple.Service.Monitoring.Library

A lightweight, extensible .NET library for real-time service health monitoring and reporting.

Features

  • Health check abstraction for any .NET service
  • Pluggable health check providers
  • Real-time health status reporting
  • Integration with ASP.NET Core and background services
  • Extensible event/observer model
  • Pluggable publishers for notifications (email, webhooks, etc.)
  • Designed for cloud-native and on-premises scenarios

Installation

Install via NuGet:

dotnet add package Simple.Service.Monitoring.Library

Usage

1. Register Health Checks

In your Program.cs or Startup.cs:

builder.Services.AddServiceMonitoring()

2. Implement Custom Health Checks (Optional)

Implement IHealthCheckProvider for your own checks:

public class MyCustomHealthCheck : IHealthCheckProvider
{
    public Task<HealthCheckResult> CheckAsync(CancellationToken cancellationToken = default)
    {
        // Your health check logic
        return Task.FromResult(HealthCheckResult.Healthy("OK"));
    }
}

Register it:

builder.Services.AddServiceMonitoring()
    .AddHealthCheck<MyCustomHealthCheck>("My Custom Check");

3. Observe Health Reports

Subscribe to health report events:

public class MyObserver : IReportObserver
{
    public Task OnReportAsync(HealthReport report)
    {
        // Handle report
        return Task.CompletedTask;
    }
}

// Register observer
builder.Services.AddSingleton<IReportObserver, MyObserver>();

4. Add Publishers (Optional)

You can add publishers to send notifications (email, webhooks, etc.):

License

MIT

Repository

https://github.com/turric4n/Dotnet.Simple.Service.Monitoring

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Simple.Service.Monitoring.Library:

Package Downloads
Simple.Service.Monitoring.Extensions

Simple Service Monitoring Extensions and Health checks for .NET - Added SQL/MySQL query healthCheck and result

Simple.Service.Monitoring.UI

Simple health check library UI for internal or external services made in C# - Added SQL/MySQL query healthCheck and result

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.11 100 7/4/2025
1.0.10 178 6/30/2025
1.0.9 167 6/30/2025
1.0.8 160 6/30/2025
1.0.4.2 138 5/13/2024
1.0.4.1 116 5/13/2024
1.0.4 204 12/21/2023
1.0.3.9 265 7/3/2023
1.0.3.8 239 7/3/2023
1.0.3.7 239 6/12/2023
1.0.3.6 269 6/9/2023
1.0.3.5 246 6/8/2023
1.0.3.4 405 3/31/2023
1.0.3.3 301 3/31/2023
1.0.3.2 404 3/31/2023
1.0.3.1 1,072 3/16/2022
1.0.3 1,038 3/16/2022
1.0.2.9 1,095 3/16/2022
1.0.2.8 1,087 3/15/2022
1.0.2.7 1,061 3/15/2022
1.0.2.6 1,138 1/25/2022
1.0.2.5 1,105 1/20/2022
1.0.2.4 1,117 1/19/2022
1.0.2.3 644 12/13/2021
1.0.2.2 2,094 11/26/2021
1.0.2.1 3,533 11/25/2021
1.0.2 2,885 11/25/2021
1.0.1.9 658 11/11/2021
1.0.1.7 831 7/20/2021
1.0.1.6 721 6/28/2021
1.0.1.5 773 6/21/2021
1.0.1.4 714 6/7/2021
1.0.1.3 689 6/3/2021
1.0.1.2 724 6/3/2021
1.0.1.1 746 6/2/2021
1.0.1 755 6/2/2021
1.0.0 724 6/1/2021