/// <summary>
 /// Initializes a new instance of the <see cref="DownloadTask"/> class.
 /// </summary>
 /// <param name="networkProtocolProviderFactory">The network protocol provider factory.</param>
 /// <param name="downloadSegmentCalculator">The download segment calculator.</param>
 /// <param name="downloadStreamManager">The download stream manager.</param>
 /// <param name="settings">The settings.</param>
 /// <param name="file">The file.</param>
 /// <param name="eventManager">The event manager.</param>
 public DownloadTask(
     INetworkProtocolProviderFactory networkProtocolProviderFactory,
     IDownloadSegmentPositionsCalculator downloadSegmentCalculator,
     IDownloadStreamManager downloadStreamManager,
     IDownloadSettings settings,
     DownloadFileInfo file,
     IEventManager eventManager)
 {
     m_NetworkProtocolProviderFactory = networkProtocolProviderFactory;
     m_DownloadSegmentCalculator      = downloadSegmentCalculator;
     m_Settings = settings;
     m_File     = file;
     m_DownloadStreamManager = downloadStreamManager;
     m_EventManager          = eventManager;
     m_CreateDate            = DateTime.Now;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DownloadTask"/> class.
 /// </summary>
 /// <param name="networkProtocolProviderFactory">The network protocol provider factory.</param>
 /// <param name="downloadSegmentCalculator">The download segment calculator.</param>
 /// <param name="downloadStreamManager">The download stream manager.</param>
 /// <param name="settings">The settings.</param>
 /// <param name="file">The file.</param>
 /// <param name="eventManager">The event manager.</param>
 public DownloadTask(
                    INetworkProtocolProviderFactory networkProtocolProviderFactory,
                    IDownloadSegmentPositionsCalculator downloadSegmentCalculator,
                    IDownloadStreamManager downloadStreamManager,
                    IDownloadSettings settings,
                    DownloadFileInfo file,
                    IEventManager eventManager)
 {
     m_NetworkProtocolProviderFactory = networkProtocolProviderFactory;
     m_DownloadSegmentCalculator = downloadSegmentCalculator;
     m_Settings = settings;
     m_File = file;
     m_DownloadStreamManager = downloadStreamManager;
     m_EventManager = eventManager;
     m_CreateDate = DateTime.Now;
 }