I am creating an ASP.net Core 2.0 application to work in the .net Core 2.0 environment, as currently in their preview versions. However, I cannot figure out how to use Kestrel something different from the standard http://localhost:5000 URLs to listen to.
Most of the documentation that I can tell Google about setting up server.urls , which seems to have been changed even in the 1.0 preview to just be urls , but none of them work (when you turn on the logbook, Debug Kestrel tells me that no listening endpoints configured).
The documentation says a lot about hosting.json , and I cannot use defaultsetset.json by default. However, if I compare the recommended approach to loading a new configuration, it looks something like the new WebHost.CreateDefaultBuilder method WebHost.CreateDefaultBuilder , except that it loads appsettings.json.
Currently, I donโt understand how the relationship between appsettings.json and IConfigureOptions<T> related, if at all possible, so my problem is due to a misunderstanding of what KestrelServerOptionsSetup really is.
Henry source share