Moved the application url to HostingEnvironment and set it in the request middleware
This commit is contained in:
@@ -31,6 +31,11 @@ namespace Umbraco.Core.Hosting
|
||||
/// </summary>
|
||||
bool IsHosted { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the main application url.
|
||||
/// </summary>
|
||||
Uri ApplicationMainUrl { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Maps a virtual path to a physical path to the application's web root
|
||||
/// </summary>
|
||||
@@ -61,5 +66,10 @@ namespace Umbraco.Core.Hosting
|
||||
/// If virtualPath does not start with ~/ or /
|
||||
/// </exception>
|
||||
string ToAbsolute(string virtualPath);
|
||||
|
||||
/// <summary>
|
||||
/// Ensures that the application know its main Url.
|
||||
/// </summary>
|
||||
void EnsureApplicationMainUrl(Uri currentApplicationUrl);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user