How to get base url without accessing a request
问题 How to get the base URL in AspNet core application without having a request? I know from the Request you can get the scheme and host (ie $"{Request.Scheme}//{Request.Host}" would give something like https://localhost:5000), but is it possible to get this information from anywhere else? In other words, if I have a service class that needs to build absolute URLs, how can I get the current URL when there is not an http request available? UPDATE: Maybe that scenario does not even make sense since