Search Results for

    Show / Hide Table of Contents
    View Source

    Class HostEnvironmentExtensions

    Contains extension methods for the interface.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class HostEnvironmentExtensions

    Methods

    View Source

    GetTemporaryApplicationId(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
    View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetTemporaryApplicationId(IHostEnvironment)
      • MapPathContentRoot(IHostEnvironment, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX