Class EndpointCheckResult
- Namespace
- Silverback.Messaging.HealthChecks
- Assembly
- Silverback.Integration.dll
Encapsulates the result of a check performed against a consumer or a producer.
public class EndpointCheckResult
- Inheritance
-
EndpointCheckResult
- Inherited Members
Constructors
EndpointCheckResult(string, bool, string?)
Initializes a new instance of the EndpointCheckResult class.
public EndpointCheckResult(string endpointName, bool isSuccessful, string? errorMessage = null)
Parameters
endpointNamestringThe name of the checked endpoint.
isSuccessfulboolA value indicating whether the check was successful.
errorMessagestringThe error message, if not successful.
Properties
EndpointName
Gets the name of the checked endpoint.
public string EndpointName { get; }
Property Value
ErrorMessage
Gets the error message, if not successful.
public string? ErrorMessage { get; }
Property Value
IsSuccessful
Gets a value indicating whether the check was successful.
public bool IsSuccessful { get; }