示例#1
0
    void  StartDown()
    {
        // 以下只是测试几个下载,麻烦同学修改成您项目的资源url
        List <DownResInfo> downList = new List <DownResInfo>();

        PushDownFile(downList, "http://www.heao.gov.cn/HEAOFiles/All/ZHC/2019/09301.jpg");
        PushDownFile(downList, "http://www.heao.gov.cn/HEAOFiles/All/ZHC/2019/09302.jpg");
        PushDownFile(downList, "http://www.heao.gov.cn/HEAOFiles/All/ZHC/2019/09122.jpg");
        PushDownFile(downList, "http://www.heao.gov.cn/a/201910/42140.shtml");

        //PushDownFile(downList, "http://static.it1352.com/Content/upload/20170317180310_925aaf68-2087-4102-9286-03f51d5df29a.jpg");
        //PushDownFile(downList, "http://static.it1352.com/Content/upload/fad370454fb441158b55171ac70f2ef3.jpg");
        //PushDownFile(downList, "http://static.it1352.com/Content/upload/4ed6d2990e07438395000000087858a3.jpg");
        //PushDownFile(downList, "http://static.it1352.com/Content/upload/1eda9f0e70134189839a7dd4b5e271ca.jpg");
        //PushDownFile(downList, "http://static.it1352.com/Content/upload/567680127c434a9099dc7f2a705695a5.jpg");
        CHttpDownMng mng = new CHttpDownMng();

        mng.StartDown(downList, 2, 100 * 1024, CTargetPlat.PersistentRootPath);
        m_downMng = mng;
    }
示例#2
0
    static void WriteThreadFunc(object obj)
    {
        CHttpDownMng pMng = obj as CHttpDownMng;

        pMng.WriteThread();
    }
示例#3
0
    static void ThreadFunc(object obj)
    {
        CHttpDownMng pMng = obj as CHttpDownMng;

        pMng.DownThread();
    }