-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fernando Cerqueira
committed
Feb 20, 2024
1 parent
ce6631d
commit f9f7871
Showing
5 changed files
with
77 additions
and
3 deletions.
There are no files selected for viewing
6 changes: 4 additions & 2 deletions
6
Samples/HealthCheckPlusDemoBackgroudService/SamplePublishHealth.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# <img align="left" width="100" height="100" src="../images/icon.png">HealthCheckPlus API:IHealthCheckPlusPublisher | ||
|
||
[![Build](https://github.com/FRACerqueira/HealthCheckPlus/workflows/Build/badge.svg)](https://github.com/FRACerqueira/HealthCheckPlus/actions/workflows/build.yml) | ||
[![License](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://github.com/FRACerqueira/HealthCheckPlus/blob/master/LICENSE) | ||
[![NuGet](https://img.shields.io/nuget/v/HealthCheckPlus)](https://www.nuget.org/packages/HealthCheckPlus/) | ||
[![Downloads](https://img.shields.io/nuget/dt/HealthCheckPlus)](https://www.nuget.org/packages/HealthCheckPlus/) | ||
|
||
[**Back to List Api**](./apis.md) | ||
|
||
# IHealthCheckPlusPublisher | ||
|
||
Namespace: HealthCheckPlus | ||
|
||
Represents a publisher of information. | ||
|
||
```csharp | ||
public interface IHealthCheckPlusPublisher | ||
``` | ||
|
||
## Properties | ||
|
||
### <a id="properties-publishercondition"/>**PublisherCondition** | ||
|
||
The Publisher Condition to execute. Default value is null (always run) | ||
|
||
```csharp | ||
public abstract Func<HealthReport, Boolean> PublisherCondition { get; } | ||
``` | ||
|
||
#### Property Value | ||
|
||
[Func<HealthReport, Boolean>](https://docs.microsoft.com/en-us/dotnet/api/system.func-2)<br> | ||
|
||
|
||
- - - | ||
[**Back to List Api**](./apis.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Microsoft.Extensions.Diagnostics.HealthChecks; | ||
|
||
namespace HealthCheckPlus | ||
{ | ||
/// <summary> | ||
/// Represents a publisher of <see cref="HealthReport"/> information. | ||
/// </summary> | ||
public interface IHealthCheckPlusPublisher | ||
{ | ||
/// <summary> | ||
/// The Publisher Condition to execute. Default value is null (always run) | ||
/// </summary> | ||
public Func<HealthReport, bool> PublisherCondition { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters