Exemplo n.º 1
0
 public void Remove(T aValue, InstanceInformation aInstances)
 {
     lock (this) {
         Deleted = null;
         if (((DuplicateHandling == DuplicateHandlingType.CollectDuplicates) &&
              (aInstances != InstanceInformation.AllInstances)) ||
             (aInstances == InstanceInformation.ObjectInstance))
         {
             IAVLTreeSortNode <T> t = FindAndMark(aValue);
             if (t == null)
             {
                 return;
             }
             if (t.InstanceCount > 1)
             {
                 t.RemoveValue(aValue);
             }
             else
             {
                 Remove(aValue, InstanceInformation.AllInstances);
             }
             return;
         }
         Root.Delete(args, ref root, aValue);
     }
 }
Exemplo n.º 2
0
 public void Remove(T aValue, InstanceInformation aInstances)
 {
     lock (this) {
         tree.Remove(aValue, aInstances);
         if (tree.DeletedNode != null)
         {
             tree.DeletedNode.Disconnect();
             tree.DeletedNode = null;
         }
     }
 }
Exemplo n.º 3
0
 public SensorController(ISensorService svc, InstanceInformation info, IInstanceService inst) :
     base(info)
 {
     Svc     = svc;
     InstSvc = inst;
 }
Exemplo n.º 4
0
 public BaseController(InstanceInformation info)
 {
     Info = info;
 }
 public IncrementInstanceCountFilter(InstanceInformation info, IInstanceService svc)
 {
     Info = info;
     Svc  = svc;
 }