コード例 #1
0
 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);
     }
 }
コード例 #2
0
ファイル: DownloadManager.cs プロジェクト: happylays/tbb2
        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;

            }
        }
コード例 #3
0
 private void OnDownloadStart(object sender, GameFramework.Download.DownloadStartEventArgs e)
 {
     m_EventComponent.Fire(this, new DownloadStartEventArgs(e));
 }
コード例 #4
0
 private void OnDownloadStart(object sender, GameFramework.Download.DownloadStartEventArgs e)
 {
     m_EventComponent.Fire(this, ReferencePool.Acquire <DownloadStartEventArgs>().Fill(e));
 }
コード例 #5
0
 private void OnDownloadStart(object sender, GameFramework.Download.DownloadStartEventArgs e)
 {
     m_EventComponent.Raise(this, DownloadStartEventArgs.Create(e));
 }