Table of Contents

Interface IEventManager

Namespace
PowerSync.Common.Utils
Assembly
PowerSync.Common.dll
public interface IEventManager : ICloseable
Inherited Members

Methods

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.