public override void OnDropEntity(Net.Vpc.Upa.Callbacks.EntityEvent @event) { Net.Vpc.Upa.Entity e = @event.GetEntity(); if (filter.Accept(e)) { added.Add(e.GetName()); configurator.Uninstall(@event.GetEntity()); if (oneShot && (added).Count == 0) { u.RemoveDefinitionListener(this); } } }