![]() | |
NetworkMonitor Class |
Namespace: WeroSoft.Network
public static class NetworkMonitor
This type provides an easy way for getting network or server availability. This is a basic functionality used for the server-side and the client-side connection as well. There are different definitions for
Beside the pro-active possibility to get the connection state, the class supports detection of network connection lost caused by cable plug-out or other disconnections. Also changes of the IP-Addresses are registered.
The NetworkMonitor type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | DefaultMinimalNetworkSpeed |
Gets or sets the minimal default speed for network availability.
|
![]() ![]() | OperationDefaultTimeout |
Gets or sets the default operation timeout.
|
![]() ![]() | PingCount |
Gets or sets the count of the pings which shall be performed during evaluation.
|
Name | Description | |
---|---|---|
![]() ![]() | EvaluateAvailability |
Evaluates the current state of network connection.
|
![]() ![]() | EvaluateAvailability(Int32) |
Evaluates the current state of network connection.
|
![]() ![]() | IsNetworkAvailable |
Gets a value indicating whether a network connection with the defined minimum speed is available.
|
![]() ![]() | RegisterTarget |
Registers a server type with its communication address.
|
![]() ![]() | StartMonitoring |
Starts monitoring.
|
![]() ![]() | StopMonitoring |
Stops monitoring the network.
|
![]() ![]() | TryConnectPort |
Tries to connect a defined port.
|
![]() ![]() | UnregisterTarget |
Un-registers a server type with its communication address.
|
Name | Description | |
---|---|---|
![]() ![]() | NetworkAddressChanged |
Provides an event raised if the network address has changed.
|
![]() ![]() | NetworkAvailabilityChanged |
Provides an event called if the network availability changes.
|