public void BusListenerFoundAdvertisedName(string name, TransportMaskType transport, string namePrefix) { lock (FoundNames) { FoundNames.Add(name); this.FoundCount++; if (this.FoundCount == 4) { gotAllNames.Set(); } } }
public void BusListenerLostAdvertisedName(string name, TransportMaskType transport, string namePrefix) { lock (FoundNames) { Assert.IsTrue(FoundNames.Contains(name)); } lock (LostNames) { LostNames.Add(name); this.LostCount++; if (this.LostCount == 4) { gotAllNames.Set(); } } }