internal void Unsubscribe(QueryConnection connection)
        {
            _connectionIds.TryRemove(connection.Id, out var _);

            if (_connectionIds.Count == 0)
            {
                _db.RemoveInstance(this);
            }
        }
Beispiel #2
0
        internal void RemoveConnection(QueryConnection connection)
        {
            _connectionsById.TryRemove(connection.Id, out var _);

            UnsubscribeIfIdle();
        }
 internal void Subscribe(QueryConnection connection) =>
 _connectionIds.TryAdd(connection.Id, false);