private UserOperHttpDownloadDealer() { _key = Guid.NewGuid().ToString(); m_LocalDataStorage = LocalDataStorage.Current; m_controler = new HttpDownloadControler(_key, MAX_COUNT, ControlName); m_controler.GetNextWairForDownloadResource += () => { return(m_LocalDataStorage.GetNextWairForDownloadAutoResource()); }; m_controler.OnUpdateStatusCallBack += (obj, e) => { m_LocalDataStorage.UpdateAutoResourceStatus(e.DownloadResource.ResourceInfo.DatabaseID, e.DownloadStatus); }; }