Пример #1
0
        public Guid AddNewDownloadTask(DownloadTaskInfo downloadTaskInfo)
        {
            if (downloadTaskInfo == null)
            {
                throw new ArgumentNullException("downloadTaskInfo");
            }

            return(AddNewDownloadTask(new DownloadTask(m_NetworkProtocolProviderFactory,
                                                       DownloadManagerRuntime.DownloadSegmentPositionsCalculator,
                                                       m_LocalFileDownloadStreamManager,
                                                       m_DownloadSettings,
                                                       downloadTaskInfo.DownloadFileInfo,
                                                       m_EventManager),
                                      downloadTaskInfo.StartImmediately));
        }
        public Guid AddNewDownloadTask(DownloadTaskInfo downloadTaskInfo)
        {
            if (downloadTaskInfo == null)
            {
                throw new ArgumentNullException("downloadTaskInfo");
            }

            return AddNewDownloadTask(new DownloadTask(m_NetworkProtocolProviderFactory,
                                                DownloadManagerRuntime.DownloadSegmentPositionsCalculator,
                                                m_LocalFileDownloadStreamManager,
                                                m_DownloadSettings,
                                                downloadTaskInfo.DownloadFileInfo, 
                                                m_EventManager),
                                                downloadTaskInfo.StartImmediately);
        }
 public Guid AddNewDownloadTask(DownloadTaskInfo downloadTaskInfo)
 {
     return m_DownloadManager.AddNewDownloadTask(downloadTaskInfo);
 }
 public Guid AddNewDownloadTask(DownloadTaskInfo downloadTaskInfo)
 {
     return(m_DownloadManager.AddNewDownloadTask(downloadTaskInfo));
 }