Beispiel #1
0
        internal void RemoveInstance(QueryInstance instance)
        {
            _instancesByKey.TryRemove(instance.Key, out var _);

            UnsubscribeIfIdle();
        }
Beispiel #2
0
        internal void Subscribe(QueryInstance instance)
        {
            _instancesByKey.TryAdd(instance.Key, instance);

            instance.Subscribe(this);
        }