
using Mall.Education.Helper;
using Mall.Education.Models;
using Mall.Education.RabbitMQ;
using System;
using System.ServiceProcess;
using COSSnippet;

namespace Mall.Education
{
    public class Program
    {
        static void Main(string[] args)
        {
            //ServiceBase[] ServicesToRun;
            //ServicesToRun = new ServiceBase[]
            //{
            //    new RebornTimerServer(),
            //};
            //ServiceBase.Run(ServicesToRun);

            //RabbitConfig rabbit = new RabbitConfig()
            //{
            //    HostName = "47.96.25.130",
            //    Port = 5672,
            //    UserName = "guest",
            //    Password = "viitto2019",
            //    QueenName = RabbitKey.QUEEN_GENERATE_EDUCARION
            //};
            //RabbiMQManager.DealWithMessage(rabbit);


            //new OfficeHelper().GetWordToImagePathList("C:/Users/Administrator/Desktop/testImage/网课需求(1).docx", "C:/Users/Administrator/Desktop/testImage/Image/", null);
            //new Word2ImageConverter().ConvertToImage("C:/Users/Administrator/Desktop/testImage/网课需求(1).docx", "C:/Users/Administrator/Desktop/testImage/Image/");
            //new Pdf2ImageConverter().ConvertToImage("C:/Users/Administrator/Desktop/testImage/MA10048W_zh.pdf", "C:/Users/Administrator/Desktop/testImage/PdfImage/");
            //new Ppt2ImageConverter().ConvertToImage("C:/Users/Administrator/Desktop/testImage/kjljlkjk.ppt", "C:/Users/Administrator/Desktop/testImage/PptImage/");


            //FileDataHelper.InsertGoodsFileImage();
            TransferUploadObjectModel m = new TransferUploadObjectModel();
            m.TransferUploadFile("C:/Users/Administrator/Desktop/testImage/Image/网课需求(1)_001.Png", "网课需求(1)_001.Png");

            Console.ReadKey();
        }
    }
}
