with this, I could compile & run following Code:
Code: Select all
private static void PrintEndpoints(MyServerManager server)
{
// print the endpoints.
Logger.Info("Listening at the following endpoints: {");
foreach (EndpointDescription endpoint in ApplicationInstance.Default.Endpoints)
{
var error = server.Application.GetEndpointStatus(endpoint);
Logger.Info($" {endpoint}: Status={error.ToString(true)}");
}
Logger.Info("} Listening at the following endpoints:");
}
When I reference to this version, I cannot compile, as ApplicationInstance cannot be found ?!?