Table of Contents

Class StreamEventHandler

Namespace
Virtufin.Api.Client
Assembly
Virtufin.Api.Client.dll

Handles stream events with callback methods.

public class StreamEventHandler : IStreamEventHandler
Inheritance
StreamEventHandler
Implements
Inherited Members

Constructors

StreamEventHandler()

Creates a new StreamEventHandler instance.

public StreamEventHandler()

Methods

OnError(Exception)

Called when an error occurs in the event stream.

public void OnError(Exception ex)

Parameters

ex Exception

The exception that occurred.

OnEvent(TopicEventRequest)

Called when a regular event is received.

public void OnEvent(TopicEventRequest e)

Parameters

e TopicEventRequest

The topic event request containing event data.

Events

ErrorOccurred

Event fired when an error occurs in the event stream.

public event Action<Exception>? ErrorOccurred

Event Type

Action<Exception>

EventReceived

Event fired when a regular event is received.

public event Action<TopicEventRequest>? EventReceived

Event Type

Action<TopicEventRequest>