DataWeb
Search Results for

    Show / Hide Table of Contents

    Class EnvironmentService

    Provides a service for accessing environment-related information. Implements the IEnvironmentService interface.

    Inheritance
    object
    EnvironmentService
    Implements
    IEnvironmentService
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DataWeb.App
    Assembly: DataWeb.Core.dll
    Syntax
    public sealed class EnvironmentService : IEnvironmentService
    Remarks

    Initializes a new instance of the EnvironmentService class.

    Constructors

    EnvironmentService(IWebHostEnvironment)

    Provides a service for accessing environment-related information. Implements the IEnvironmentService interface.

    Declaration
    public EnvironmentService(IWebHostEnvironment hostingEnvironment)
    Parameters
    Type Name Description
    IWebHostEnvironment hostingEnvironment

    The web host environment to be used by the service.

    Remarks

    Initializes a new instance of the EnvironmentService class.

    Methods

    GetRootPath()

    Retrieves the root path of the web application.

    Declaration
    public string GetRootPath()
    Returns
    Type Description
    string

    A string containing the absolute path to the root of the web application.

    Implements

    IEnvironmentService
    In this article
    Back to top Generated by DocFX