WebHelper

public static class WebHelper

1. Methods

1.1. CheckIfWebsiteIsRunning(ILogger, string)

public static bool CheckIfWebsiteIsRunning(ILogger logger, string url)
Table 1. Parameters
Name Type Description

logger

ILogger

url

string

Returns: bool

1.2. CheckOnline(ILogger, int, int)

public static bool CheckOnline(ILogger logger, int timeoutSeconds = 60, int timeoutIntervalSeconds = 5)
Table 2. Parameters
Name Type Description

logger

ILogger

timeoutSeconds

int

timeoutIntervalSeconds

int

Returns: bool

1.3. EnsureOnlineIfNeededAskForWifi(ISystemHost, int, int)

public static void EnsureOnlineIfNeededAskForWifi(this ISystemHost host, int timeoutSeconds = 60, int timeoutIntervalSeconds = 5)
Table 3. Parameters
Name Type Description

host

ISystemHost

timeoutSeconds

int

timeoutIntervalSeconds

int

1.4. HasWifi(ISystemHost)

public static bool HasWifi(this ISystemHost host)
Table 4. Parameters
Name Type Description

host

ISystemHost

Returns: bool