Beispiel #1
0
 private static async Task Main(string[] args)
 {
     Console.Title = "gRPC Service";
     GrpcServer.Start();
     Console.WriteLine("gRPC server started.\nPress spacebar to notify item changes or any other key to stop it.");
     while (Console.ReadKey().Key == ConsoleKey.Spacebar)
     {
         RaiseItemsChanged();
     }
     await GrpcServer.Stop();
 }