Class EnvironmentService
Provides a service for accessing environment-related information. Implements the IEnvironmentService interface.
Inheritance
object
EnvironmentService
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DataWeb.App
Assembly: DataWeb.Core.dll
Syntax
public class EnvironmentService : IEnvironmentService
Constructors
EnvironmentService(IWebHostEnvironment)
Initializes a new instance of the EnvironmentService class.
Declaration
public EnvironmentService(IWebHostEnvironment hostingEnvironment)
Parameters
Type | Name | Description |
---|---|---|
IWebHostEnvironment | hostingEnvironment | The web host environment to be used by the service. |
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. |