//------------------------------------------------------------
// Game Framework
// Copyright © 2013-2021 loyalsoft. All rights reserved.
// Homepage: http://www.game7000.com/
// Feedback: http://www.game7000.com/
//------------------------------------------------------------
namespace GameFramework.Download
{
///
/// 下载代理辅助器完成事件。
///
public sealed class DownloadAgentHelperCompleteEventArgs : GameFrameworkEventArgs
{
///
/// 初始化下载代理辅助器完成事件的新实例。
///
public DownloadAgentHelperCompleteEventArgs()
{
Length = 0L;
}
///
/// 获取下载的数据大小。
///
public long Length
{
get;
private set;
}
///
/// 创建下载代理辅助器完成事件。
///
/// 下载的数据大小。
/// 创建的下载代理辅助器完成事件。
public static DownloadAgentHelperCompleteEventArgs Create(long length)
{
if (length < 0L)
{
throw new GameFrameworkException("Length is invalid.");
}
DownloadAgentHelperCompleteEventArgs downloadAgentHelperCompleteEventArgs = ReferencePool.Acquire();
downloadAgentHelperCompleteEventArgs.Length = length;
return downloadAgentHelperCompleteEventArgs;
}
///
/// 清理下载代理辅助器完成事件。
///
public override void Clear()
{
Length = 0L;
}
}
}