Show / Hide Table of Contents

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
Implements
IWorkerListener
Namespace: Deephaven.OpenAPI.Client
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
Type Name Description
IWorkerSession workerSession
Exception ex

OnLogMessage(IWorkerSession, LogMessage)

Declaration
public void OnLogMessage(IWorkerSession workerSession, LogMessage logMessage)
Parameters
Type Name Description
IWorkerSession workerSession
LogMessage logMessage

OnOpen(IWorkerSession)

Declaration
public void OnOpen(IWorkerSession workerSession)
Parameters
Type Name Description
IWorkerSession workerSession

OnPing(IWorkerSession)

Declaration
public void OnPing(IWorkerSession workerSession)
Parameters
Type Name Description
IWorkerSession workerSession

Events

Closed

Declaration
public event Action<IWorkerSession, ushort, string> Closed
Event Type
Type Description
Action<IWorkerSession, System.UInt16, System.String>

Error

Declaration
public event Action<IWorkerSession, Exception> Error
Event Type
Type Description
Action<IWorkerSession, Exception>

LogMessage

Declaration
public event Action<IWorkerSession, LogMessage> LogMessage
Event Type
Type Description
Action<IWorkerSession, LogMessage>

Open

Declaration
public event Action<IWorkerSession> Open
Event Type
Type Description
Action<IWorkerSession>

Ping

Declaration
public event Action<IWorkerSession> Ping
Event Type
Type Description
Action<IWorkerSession>

Implements

IWorkerListener
Back to top Generated by DocFX