12345678910111213141516171819202122232425 |
- using MiniWebApi.Network;
- using Sms.Tool.Tencent;
- using System;
- using System.Threading.Tasks;
- namespace Sms.Tool
- {
- class Program
- {
- static void Main(string[] args)
- {
- TencentHelper.Init();
- var webApiServer = new WebApiServer("SmsTool");
- webApiServer.Start(9998);
- 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();
- }
- }
- }
|