1234567891011121314151617181920212223242526272829 |
- using System.Collections.Concurrent;
- using SmsTool.Models;
- using SmsTool.Tencent;
- using TencentCloud.Sms.V20210111.Models;
- using MiniWebApi.Network;
- using System;
- namespace SmsTool
- {
- class Program
- {
- static void Main(string[] args)
- {
- TencentHelper.Init();
- var webApiServer = new WebApiServer("SmsTool");
- //webApiServer.Start(args[0]);
- //工具需要兼容老平台, 上线后保留此发短信工具
- webApiServer.Start(8302);
- Console.WriteLine("SmsTool server started");
- var readLine = Console.ReadLine();
- while (readLine != null && !readLine.Equals("q", StringComparison.OrdinalIgnoreCase))
- {
- Console.WriteLine("Type \"q\" to exit.");
- readLine = Console.ReadLine();
- }
- webApiServer.Stop();
- }
- }
- }
|