using System;
using Mall.Common.Models;
using Mall.Common.Plugin;
using Newtonsoft.Json;

namespace TestCore
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("开始..");

            //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/");

            RabbiMQManager.SendMessage(new RabbitConfig()
            {
                HostName = "47.96.25.130",
                Port = 5672,
                UserName = "guest",
                Password = "viitto2019",
                QueenName = RabbitKey.QUEEN_GENERATE_EDUCARION
            }, JsonConvert.SerializeObject(new
            {
                Name = "科长级",
                Age = 33
            }));
            Console.WriteLine("结束..");
            Console.ReadKey();
        }
    }
}
