Click or drag to resize
weroSoft AG, Software
NetworkMonitor Class
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Provides information about the network and network connection.
Inheritance Hierarchy

Namespace:  WeroSoft.Network
Assembly:  WeroSoft.Core.Library (in WeroSoft.Core.Library.dll) Version: 3.0
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

  • Internet
  • Local host
  • Configurable host connections

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.

Public propertyStatic memberDefaultMinimalNetworkSpeed
Gets or sets the minimal default speed for network availability.
Public propertyStatic memberOperationDefaultTimeout
Gets or sets the default operation timeout.
Public propertyStatic memberPingCount
Gets or sets the count of the pings which shall be performed during evaluation.
Public methodStatic memberEvaluateAvailability
Evaluates the current state of network connection.
Public methodStatic memberEvaluateAvailability(Int32)
Evaluates the current state of network connection.
Public methodStatic memberIsNetworkAvailable
Gets a value indicating whether a network connection with the defined minimum speed is available.
Public methodStatic memberRegisterTarget
Registers a server type with its communication address.
Public methodStatic memberStartMonitoring
Starts monitoring.
Public methodStatic memberStopMonitoring
Stops monitoring the network.
Public methodStatic memberTryConnectPort
Tries to connect a defined port.
Public methodStatic memberUnregisterTarget
Un-registers a server type with its communication address.
Public eventStatic memberNetworkAddressChanged
Provides an event raised if the network address has changed.
Public eventStatic memberNetworkAvailabilityChanged
Provides an event called if the network availability changes.
See Also