Show / Hide Table of Contents

Interface IWorkerListener

An interface that clients can use to listen for callbacks from the Worker.

Namespace: Deephaven.OpenAPI.Client
Assembly: DeephavenOpenAPI.dll
Syntax
public interface IWorkerListener

Methods

OnClosed(IWorkerSession, UInt16, String)

Callback invoked when a Worker has been closed.

Declaration
void OnClosed(IWorkerSession workerSession, ushort code, string err)
Parameters
Type Name Description
IWorkerSession workerSession

The Worker Session

System.UInt16 code

Numeric error code (TODO(kosak))

System.String err

Human-readable error message

OnError(IWorkerSession, Exception)

Callback invoked when there is a Worker exception

Declaration
void OnError(IWorkerSession workerSession, Exception ex)
Parameters
Type Name Description
IWorkerSession workerSession

The Worker Session

Exception ex

The exception

OnLogMessage(IWorkerSession, LogMessage)

Callback invoked when a Worker records a log message

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

The Worker Session

LogMessage logMessage

The log message

OnOpen(IWorkerSession)

Callback invoked when a Worker has been opened.

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

The Worker Session

OnPing(IWorkerSession)

Callback invoked when a Worker responds to a ping

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

The Worker Session

Back to top Generated by DocFX