示例#1
0
        private void Pair_Closed(object sender, EventArgs e)
        {
            var pair = (T)sender;

            sessions.Remove(pair);
            Closed?.Invoke(this, pair);
        }
示例#2
0
 public void RemoveListner(MitmListner <T> listner)
 {
     if (!listners.Remove(listner))
     {
         return;
     }
     listner.Accepted  -= Listner_MitmPairAccepted;
     listner.Accepting -= Listner_MitmPairAccepting;
 }
示例#3
0
 internal void RemoveOwnedFile(MpqFileStream file)
 {
     _openFiles.Remove(file);
 }