AB#6233 - Added application url on IHostingEnvironment. Still need a way to figure out how to get this value

This commit is contained in:
Bjarke Berg
2020-05-01 08:26:05 +02:00
parent 04872857e4
commit da1e83c0d1
24 changed files with 47 additions and 24 deletions

View File

@@ -26,6 +26,7 @@ namespace Umbraco.Web.Common.AspNetCore
ApplicationPhysicalPath = webHostEnvironment.ContentRootPath;
ApplicationVirtualPath = "/"; //TODO how to find this, This is a server thing, not application thing.
ApplicationServerAddress = "https://localhost:44354"; // TODO how to find this?
IISVersion = new Version(0, 0); // TODO not necessary IIS
}
@@ -34,6 +35,7 @@ namespace Umbraco.Web.Common.AspNetCore
public string SiteName { get; }
public string ApplicationId { get; }
public string ApplicationPhysicalPath { get; }
public string ApplicationServerAddress { get; }
public string ApplicationVirtualPath { get; }
public bool IsDebugMode => _hostingSettings.DebugMode;