public SubscriberCollection GetSubscriptions(ExKeyType exKey)
        {
            CollectionOfSubscriberCollections propIndex = GetPropIndexForObject(exKey.Level1Key, out bool propIndexWasCreated);

            if (propIndexWasCreated)
            {
                System.Diagnostics.Debug.WriteLine($"Created a new CollectionOfSubscriberCollections for {exKey}.");
            }

            SubscriberCollection result = propIndex.GetOrCreate(exKey.Level2Key, out bool subcriberListWasCreated);

            if (subcriberListWasCreated)
            {
                System.Diagnostics.Debug.WriteLine($"Created a new SubscriberCollection for {exKey}.");
            }

            return(result);
        }
Beispiel #2
0
 public bool Equals(ExKeyType other)
 {
     return(CKey == other.CKey);
 }
        ExKeyType HaveTheKeyType.GetTheKey(IPropBag propBag, PropIdType propId)
        {
            ExKeyType result = GetCompKey(propBag, propId);

            return(result);
        }