/// <summary>Remove closed edges from the IdentifierTable</summary> protected void CloseHandler(object o, EventArgs ea) { SubringEdge se = o as SubringEdge; if (se != null) { _it.Remove(se.LocalID); } }
/// <summary>Remove closed XmppEdges from the IdentifierTable.</summary> protected void CloseHandler(object o, EventArgs ea) { XmppEdge xe = o as XmppEdge; if (xe != null) { _it.Remove(xe.LocalID); } }
override protected void RemoveSA(SecurityAssociation sa) { DtlsAssociation dsa = sa as DtlsAssociation; if (dsa == null) { throw new Exception("SecurityAssociation is not a DtlsAssociation: " + sa); } _rwl.AcquireWriterLock(Timeout.Infinite); _sender_to_sa.Remove(dsa.Sender); _rwl.ReleaseWriterLock(); _it.Remove(dsa.LocalID); }