Class SystemStartedEvent
This waithandle waits for a single system to become available from the network scanner. It uses a ManualResetEvent Internally.
Implements
Inherited Members
Namespace: ABB.Robotics.Controllers.Discovery
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public sealed class SystemStartedEvent : WaitHandle, IDisposable
Constructors
SystemStartedEvent(NetworkWatcher, Guid)
Creates a SystemWaitHandle object.
Declaration
public SystemStartedEvent(NetworkWatcher watcher, Guid systemId)
Parameters
Type | Name | Description |
---|---|---|
NetworkWatcher | watcher | Watcher that provides the events. |
Guid | systemId | System to wait for. |
Properties
Handle
Gets the Native handle of the object.
Declaration
[Obsolete("No longer supported")]
public override IntPtr Handle { get; set; }
Property Value
Type | Description |
---|---|
IntPtr |
Overrides
Methods
Dispose(Boolean)
When overridden in a derived class, releases the unmanaged resources used by the WaitHandle, and optionally releases the managed resources.
Declaration
protected override void Dispose(bool explicitDisposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | explicitDisposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Overrides
WaitOne()
Waits forever for the specified system.
Declaration
public override bool WaitOne()
Returns
Type | Description |
---|---|
Boolean | True if the controller is available otherwise false. |
Overrides
WaitOne(Int32, Boolean)
Waits for the specified system to become available.
Declaration
public override bool WaitOne(int millisecondsTimeout, bool exitContext)
Parameters
Type | Name | Description |
---|---|---|
Int32 | millisecondsTimeout | Timeout for wait operation. |
Boolean | exitContext | See .NET documentation. |
Returns
Type | Description |
---|---|
Boolean | True if the controller is available otherwise false. |
Overrides
WaitOne(TimeSpan, Boolean)
Waits for the specified system to become available.
Declaration
public override bool WaitOne(TimeSpan timeout, bool exitContext)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timeout | Timeout for wait operation. |
Boolean | exitContext | See .NET documentation. |
Returns
Type | Description |
---|---|
Boolean | True if the controller is available otherwise false. |