Exemplo n.º 1
0
        internal void NotifyWeakReference(int message)
        {
            DbReferenceCollection referenceCollection = ReferenceCollection;

            if (null != referenceCollection)
            {
                referenceCollection.Notify(message);
            }
        }
Exemplo n.º 2
0
        internal void RemoveWeakReference(object value)
        {
            DbReferenceCollection referenceCollection = ReferenceCollection;

            if (null != referenceCollection)
            {
                referenceCollection.Remove(value);
            }
        }
Exemplo n.º 3
0
 internal void AddWeakReference(object value, int tag)
 {
     if (null == _referenceCollection)
     {
         _referenceCollection = CreateReferenceCollection();
         if (null == _referenceCollection)
         {
             throw ADP.InternalError(ADP.InternalErrorCode.CreateReferenceCollectionReturnedNull);
         }
     }
     _referenceCollection.Add(value, tag);
 }