HttpProbe constructor

A health probe that performs an HTTP GET request to a specified URL and interprets the JSON response according to the health probe contract.

public HttpProbe(string name, string[] tags, HttpClient http, string url, 
    TimeSpan? timeout = default, ILogger? logger = null)
parameter description
name The name of the probe.
tags The tags associated with the probe.
http The HTTP client to use.
url The URL to probe.
timeout The timeout for the probe.
logger Optional logger; if null a contextual logger is created.

Remarks

Initializes a new instance of the HttpProbe class.

See Also