static void Main(string[] args) { // Starting DataClass new DataClass(); // Starting gRPC Server Server server = new Server { Services = { Notifier.BindService(new NotifierImpl()) }, Ports = { new ServerPort("localhost", Port, ServerCredentials.Insecure) } }; server.Start(); Console.WriteLine("Notifier server listening on port " + Port); Console.WriteLine("Press any key to stop the server..."); Console.ReadKey(); server.ShutdownAsync().Wait(); }