Table of Contents

Class HealthCheckerFactory

Namespace
AppHealthMonitor
Assembly
AppHealthMonitor.dll

Creates IHealthChecker instances for the specified port types. Returns an empty list when no port types are configured (process-only monitoring). Logs a warning when UDP is the only configured port type, as it provides no real health signal.

public static class HealthCheckerFactory
Inheritance
HealthCheckerFactory
Inherited Members

Methods

Create(IReadOnlyList<PortType>)

Creates a read-only list of health checkers corresponding to the given port types.

public static IReadOnlyList<IHealthChecker> Create(IReadOnlyList<PortType> portTypes)

Parameters

portTypes IReadOnlyList<PortType>

The port types to create checkers for. An empty list results in process-only monitoring.

Returns

IReadOnlyList<IHealthChecker>

A read-only list of health checker instances.

Exceptions

ArgumentNullException

Thrown when portTypes is null.