Class EnvironmentService
Provides a service for accessing environment-related information. Implements the IEnvironmentService interface.
Implements
Inherited Members
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. |