Interface IRoboDKEventSource
Namespace:RoboDk.API
Assembly: RoboDkApi.dll
Syntax
公共接口IRoboDKEventSource
Properties
|Improve this Doc View SourceEventProtocolVersion
RoboDK Event protocol version.
Declaration
int EventProtocolVersion { get; }
Property Value
Type | 描述 |
---|---|
int |
Methods
|Improve this Doc View SourceClose()
Close Event Channel. An ObjectDisposedException will be thrown if WaitForEvent is called after closing the event channel.
Declaration
void Close()
WaitForEvent(int)
Wait for a new RoboDK event. This function blocks until a new RoboDK event occurs. In case of a timeout EventType.NoEvent will be returned. For any other socket error the method re-throws the socket exception.
Declaration
EventResult WaitForEvent(int timeout = 1000)
Parameters
Type | Name | 描述 |
---|---|---|
int | timeout |
Returns
Type | 描述 |
---|---|
EventResult | Event received from RoboDK. |