Class NetworkWatcher
This class monitors the network for controller activites.
Implements
Namespace: ABB.Robotics.Controllers.Discovery
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public sealed class NetworkWatcher : IDisposable
Constructors
NetworkWatcher()
Creates a NetworkWatcher with disabled events.
Declaration
public NetworkWatcher()
NetworkWatcher(ControllerInfo[])
Creates a NetworkWatcher with disabled events but initiated to controllers.
Declaration
public NetworkWatcher(ControllerInfo[] controllers)
Parameters
Type | Name | Description |
---|---|---|
ControllerInfo[] | controllers | the already known controllers |
NetworkWatcher(ControllerInfo[], Boolean)
Creates a NetworkWatcher initiated to controllers.
Declaration
public NetworkWatcher(ControllerInfo[] controllers, bool enableRaisingEvents)
Parameters
Type | Name | Description |
---|---|---|
ControllerInfo[] | controllers | the already known controllers |
Boolean | enableRaisingEvents | enables/disables events |
NetworkWatcher(ControllerInfoCollection)
Creates a NetworkWatcher with disabled events but initiated to controllers.
Declaration
public NetworkWatcher(ControllerInfoCollection controllers)
Parameters
Type | Name | Description |
---|---|---|
ControllerInfoCollection | controllers | the already known controllers |
NetworkWatcher(ControllerInfoCollection, Boolean)
Creates a NetworkWatcher initiated to controllers.
Declaration
public NetworkWatcher(ControllerInfoCollection controllers, bool enableRaisingEvents)
Parameters
Type | Name | Description |
---|---|---|
ControllerInfoCollection | controllers | the already known controllers |
Boolean | enableRaisingEvents | enables/disables events |
NetworkWatcher(Boolean)
Creates a NetworkWatcher.
Declaration
public NetworkWatcher(bool enableRaisingEvents)
Parameters
Type | Name | Description |
---|---|---|
Boolean | enableRaisingEvents | Controller if events are raisable from creation. |
Properties
EnableRaisingEvents
Enables / Disables events from the Watcher object.
Declaration
public bool EnableRaisingEvents { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Dispose()
Disposes this object.
Declaration
public void Dispose()
Events
Found
This event is raised when a new controller is found.
Declaration
public event EventHandler<NetworkWatcherEventArgs> Found
Event Type
Type | Description |
---|---|
EventHandler<NetworkWatcherEventArgs> |
Lost
This event is raised when a controller is lost from the network.
Declaration
public event EventHandler<NetworkWatcherEventArgs> Lost
Event Type
Type | Description |
---|---|
EventHandler<NetworkWatcherEventArgs> |