Exemplo n.º 1
0
 private void OnDownloadAgentUpdate(DownloadAgent sender, int lastDownloadedLength)
 {
     m_DownloadCounter.RecordDownloadedLength(lastDownloadedLength);
     if (m_DownloadUpdateEventHandler != null)
     {
         DownloadUpdateEventArgs downloadUpdateEventArgs = DownloadUpdateEventArgs.Create(sender.Task.SerialId, sender.Task.DownloadPath, sender.Task.DownloadUri, sender.CurrentLength, sender.Task.UserData);
         m_DownloadUpdateEventHandler(this, downloadUpdateEventArgs);
         ReferencePool.Release(downloadUpdateEventArgs);
     }
 }
Exemplo n.º 2
0
 private void OnDownloadUpdate(object sender, GameFramework.Download.DownloadUpdateEventArgs e)
 {
     m_EventComponent.Fire(this, new DownloadUpdateEventArgs(e));
 }
Exemplo n.º 3
0
 private void OnDownloadUpdate(object sender, GameFramework.Download.DownloadUpdateEventArgs e)
 {
     m_EventComponent.Fire(this, ReferencePool.Acquire <DownloadUpdateEventArgs>().Fill(e));
 }
Exemplo n.º 4
0
 private void OnDownloadUpdate(object sender, GameFramework.Download.DownloadUpdateEventArgs e)
 {
     m_EventComponent.Raise(this, DownloadUpdateEventArgs.Create(e));
 }