#endregion
using System;
-using System.Runtime.InteropServices;
-using System.Threading;
+using System.Threading.Tasks;
using Grpc.Core;
namespace Math
const string Host = "0.0.0.0";
const int Port = 23456;
- public static void Main(string[] args)
+ public static async Task Main(string[] args)
{
Server server = new Server
{
Console.WriteLine("Press any key to stop the server...");
Console.ReadKey();
- server.ShutdownAsync().Wait();
+ await server.ShutdownAsync();
}
}
}