public void Dispose() { //crit - public shared directory can be deleted here, except for our local public header ProcessFiles.Dispose(); OpenFiles.Dispose(); Core.SecondTimerEvent -= Core_SecondTimer; // file Network.RudpControl.SessionUpdate -= new SessionUpdateHandler(Session_Update); Network.RudpControl.SessionData[ServiceID, DataTypeShare] -= new SessionDataHandler(Session_Data); Core.Transfers.FileSearch[ServiceID, DataTypeShare] -= new FileSearchHandler(Transfers_FileSearch); Core.Transfers.FileRequest[ServiceID, DataTypeShare] -= new FileRequestHandler(Transfers_FileRequest); TempLocation.Dispose(); }
public void Dispose() { if (Refresh != null) { throw new Exception("Chat Events not fin'd"); } Network.RudpControl.SessionUpdate -= new SessionUpdateHandler(Session_Update); Network.RudpControl.SessionData[ServiceID, 0] -= new SessionDataHandler(Session_Data); Network.RudpControl.KeepActive -= new KeepActiveHandler(Session_KeepActive); Core.SecondTimerEvent -= Core_SecondTimer; Core.KeepDataCore -= new KeepDataHandler(Core_KeepData); Core.Locations.KnowOnline -= new KnowOnlineHandler(Location_KnowOnline); Core.Locations.LocationUpdate -= new LocationUpdateHandler(Location_Update); if (Trust != null) { Trust.LinkUpdate -= new LinkUpdateHandler(Link_Update); } TempLocation.Dispose(); }