In the Nuget NetCoreUsefullEndpoints I have added information about the current process :
You can access by going to localhost:5027/api/usefull/adresses and the end result is
The code that returns this is
route.MapGet("api/usefull/adresses",(HttpContext httpContext,[FromServices] IServer server) => { var adresses = server.Features.Get<IServerAddressesFeature>(); var ret= adresses?.Addresses?.ToArray()??[] ; return TypedResults.Ok(ret); });
Leave a Reply