WebHelper
public static class WebHelper
1. Methods
1.1. CheckIfWebsiteIsRunning(ILogger, string)
public static bool CheckIfWebsiteIsRunning(ILogger logger, string url)
| 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)
| 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)
| Name | Type | Description |
|---|---|---|
host |
ISystemHost |
|
timeoutSeconds |
int |
|
timeoutIntervalSeconds |
int |
1.4. HasWifi(ISystemHost)
public static bool HasWifi(this ISystemHost host)
| Name | Type | Description |
|---|---|---|
host |
ISystemHost |
Returns: bool