public override void Cleanup()
 {
     base.Cleanup();
     _objectBaseRepository.Unregister(_observedData.Id);
     _objectBaseRepository.Unregister(_sim1.Id);
     _objectBaseRepository.Unregister(_sim2.Id);
 }
 public void Visit(IObjectBase objToVisit)
 {
     if (objToVisit == null)
     {
         return;
     }
     if (string.IsNullOrEmpty(objToVisit.Id))
     {
         return;
     }
     _withIdRepository.Unregister(objToVisit.Id);
     register(objToVisit);
 }
 public override void GlobalCleanup()
 {
     base.GlobalCleanup();
     _withIdRepository.Unregister(_simulation.Id);
 }
Example #4
0
 public override void Cleanup()
 {
     base.Cleanup();
     _objectBaseRepository.Unregister(_popSim1.Id);
     _objectBaseRepository.Unregister(_popSim2.Id);
 }
 private void unregister(IWithId objectToUnregister)
 {
     _withIdRepository.Unregister(objectToUnregister.Id);
 }