protected void HandleDisconnection(object ct, EventArgs ea) { ConnectionEventArgs cea = ea as ConnectionEventArgs; Connection con = cea.Connection; if(con.MainType != ConnectionType.Structured) { return; } ValidDisconnection(con); }