Class StreamEventHandler
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
exExceptionThe exception that occurred.
OnEvent(TopicEventRequest)
Called when a regular event is received.
public void OnEvent(TopicEventRequest e)
Parameters
eTopicEventRequestThe 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
EventReceived
Event fired when a regular event is received.
public event Action<TopicEventRequest>? EventReceived
Event Type
- Action<TopicEventRequest>