private void Pair_Closed(object sender, EventArgs e) { var pair = (T)sender; sessions.Remove(pair); Closed?.Invoke(this, pair); }
public void RemoveListner(MitmListner <T> listner) { if (!listners.Remove(listner)) { return; } listner.Accepted -= Listner_MitmPairAccepted; listner.Accepting -= Listner_MitmPairAccepting; }
internal void RemoveOwnedFile(MpqFileStream file) { _openFiles.Remove(file); }