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

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

            instance.Subscribe(this);
        }