Table of Contents

Class ConnectionManager

Namespace
PowerSync.Common.Client
Assembly
PowerSync.Common.dll
public class ConnectionManager : ICloseable
Inheritance
ConnectionManager
Implements
Inherited Members

Constructors

ConnectionManager(Func<IPowerSyncBackendConnector, CreateSyncImplementationOptions, Task<ConnectionManagerSyncImplementationResult>>, ILogger)

Fields

ConnectingTask

Tracks active connection attempts

DisconnectingTask

Active disconnect operation. Calling disconnect multiple times will resolve to the same operation.

Logger
PendingConnectionOptions

Tracks the last parameters supplied to connect calls. Calling connect multiple times in succession will result in:

  • 1 pending connection operation which will be aborted.
  • updating the last set of parameters while waiting for the pending attempt to be aborted
  • internally connecting with the last set of parameters
SyncDisposer

Additional cleanup function which is called after the sync stream implementation is disposed.

SyncStreamImplementation
SyncStreamInitTask

Tracks actively instantiating a streaming sync implementation.

Properties

ActiveStreams
ConnectionOptions
Connector
Events

Methods

Close()
Connect(IPowerSyncBackendConnector, PowerSyncConnectionOptions)
ConnectInternal()
Disconnect()
DisconnectInternal()
PerformDisconnect()
Stream(InternalSubscriptionManager, string, Dictionary<string, object>?)