Class WorkerEventDispatcher
An implementation of IWorkerListener that
dispatches worker updates as events instead of requiring the user to
implement listener methods.
Inheritance
System.Object
WorkerEventDispatcher
Assembly: DeephavenOpenAPI.dll
Syntax
public class WorkerEventDispatcher : object, IWorkerListener
Methods
OnClosed(IWorkerSession, UInt16, String)
Declaration
public void OnClosed(IWorkerSession workerSession, ushort code, string reason)
Parameters
Type |
Name |
Description |
IWorkerSession |
workerSession |
|
System.UInt16 |
code |
|
System.String |
reason |
|
OnError(IWorkerSession, Exception)
Declaration
public void OnError(IWorkerSession workerSession, Exception ex)
Parameters
OnLogMessage(IWorkerSession, LogMessage)
Declaration
public void OnLogMessage(IWorkerSession workerSession, LogMessage logMessage)
Parameters
OnOpen(IWorkerSession)
Declaration
public void OnOpen(IWorkerSession workerSession)
Parameters
OnPing(IWorkerSession)
Declaration
public void OnPing(IWorkerSession workerSession)
Parameters
Events
Closed
Declaration
public event Action<IWorkerSession, ushort, string> Closed
Event Type
Error
Declaration
public event Action<IWorkerSession, Exception> Error
Event Type
LogMessage
Declaration
public event Action<IWorkerSession, LogMessage> LogMessage
Event Type
Open
Declaration
public event Action<IWorkerSession> Open
Event Type
Ping
Declaration
public event Action<IWorkerSession> Ping
Event Type
Implements