Table of Contents

Class EventManager

Namespace
PowerSync.Common.Utils
Assembly
PowerSync.Common.dll
public class EventManager : IEventManager, ICloseable
Inheritance
EventManager
Implements
Derived
Inherited Members

Methods

Close()
Deregister<T>()

Deregisters the stream associated with the EventManager.

This does NOT close the stream in the default implementation.

Emit<T>(T)

Posts a message to the stream managing events of type T.

Register<T>(EventStream<T>)

Registers a new EventStream into the EventManager.

TryEmit<T>(T)

Attemps to post a message to the stream managing events of type T.

TryGetStream<T>(out EventStream<T>)

Attempts to retreive the EventStream associated with events of type T.