private void OnDownloadAgentStart(DownloadAgent sender) { if (m_DownloadStartEventHandler != null) { DownloadStartEventArgs downloadStartEventArgs = DownloadStartEventArgs.Create(sender.Task.SerialId, sender.Task.DownloadPath, sender.Task.DownloadUri, sender.CurrentLength, sender.Task.UserData); m_DownloadStartEventHandler(this, downloadStartEventArgs); ReferencePool.Release(downloadStartEventArgs); } }
void OnDownloadStart(object sender, DownloadStartEventArgs e) { if (e.CurrentLength > updateInfo.ZipLength) { m_DownloadManager.RemoveDownload(e.Serialid); string downloadFile = string.Format("{0}.download", e.DownloadPath); if (File.Exists(downloadFile)) { File.Delete(downloadFile); } string errorMessage = string.Format("When download"); OnDownloadFailure(this, new DownloadFailureEventArgs()); return; } }
private void OnDownloadStart(object sender, GameFramework.Download.DownloadStartEventArgs e) { m_EventComponent.Fire(this, new DownloadStartEventArgs(e)); }
private void OnDownloadStart(object sender, GameFramework.Download.DownloadStartEventArgs e) { m_EventComponent.Fire(this, ReferencePool.Acquire <DownloadStartEventArgs>().Fill(e)); }
private void OnDownloadStart(object sender, GameFramework.Download.DownloadStartEventArgs e) { m_EventComponent.Raise(this, DownloadStartEventArgs.Create(e)); }