I'm trying to determine the current domain name from within the Startup.Cs module of an ASP.NET Core 2.0 Razor pages application. The website will be bound to several different domains and I want to load the appropriate _layout/theme based on this.
I have been searching, but I can't figure out how to determine which domain was used to reach the site.
Any help would be greatly appreciated.
Thanks.