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

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

            instance.Subscribe(this);
        }