in cs/calculator-service/CalculatorService.cs [64:81]
public static void Main()
{
Server calculatorService = new Server
{
Services =
{
Calculator.BindService(new CalculatorService())
},
Ports = { new ServerPort("localhost", 50051, ServerCredentials.Insecure) }
};
calculatorService.Start();
// Block and let the service run.
Console.WriteLine($"{nameof(CalculatorService)} up and running. Press enter to exit.");
Console.ReadLine();
Task.WaitAll(calculatorService.ShutdownAsync());
}