Class HostEnvironmentExtensions
Contains extension methods for the
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class HostEnvironmentExtensions
Methods
View SourceGetTemporaryApplicationId(IHostEnvironment)
Gets a temporary application id for use before the ioc container is built.
Declaration
public static string GetTemporaryApplicationId(this IHostEnvironment hostEnvironment)
Parameters
Type | Name | Description |
---|---|---|
IHostEnvironment | hostEnvironment |
Returns
Type | Description |
---|---|
System.String |
MapPathContentRoot(IHostEnvironment, String)
Maps a virtual path to a physical path to the application's content root.
Declaration
public static string MapPathContentRoot(this IHostEnvironment hostEnvironment, string path)
Parameters
Type | Name | Description |
---|---|---|
IHostEnvironment | hostEnvironment | |
System.String | path |
Returns
Type | Description |
---|---|
System.String |
Remarks
Generally the content root is the parent directory of the web root directory.