public void Dispose() { Core.Locations.GetTag[ServiceID, DataTypeSync] -= new GetLocationTagHandler(Locations_GetTag); Core.Locations.TagReceived[ServiceID, DataTypeSync] -= new LocationTagReceivedHandler(Locations_TagReceived); Store.ReplicateEvent[ServiceID, DataTypeSync] -= new ReplicateHandler(Store_Replicate); Cache.FileAquired -= new FileAquiredHandler(Cache_FileAquired); Cache.FileRemoved -= new FileRemovedHandler(Cache_FileRemoved); Cache.Dispose(); }