Exemple #1
0
        internal void Unsubscribe(QueryConnection connection)
        {
            _connectionIds.TryRemove(connection.Id, out _);

            if (_connectionIds.Count == 0)
            {
                _host.RemoveInstance(this);
            }
        }
Exemple #2
0
 internal void RemoveConnection(QueryConnection connection) =>
 _connectionsById.TryRemove(connection.Id, out _);
Exemple #3
0
 internal void Subscribe(QueryConnection connection) =>
 _connectionIds.TryAdd(connection.Id, false);