View Source
Class AspNetCoreHostingEnvironment
Inheritance
System.Object
Assembly: Umbraco.Web.Common.dll
Syntax
public class AspNetCoreHostingEnvironment : Hosting.IHostingEnvironment
Constructors
View Source
AspNetCoreHostingEnvironment(IServiceProvider, IOptionsMonitor<HostingSettings>, IOptionsMonitor<WebRoutingSettings>, IWebHostEnvironment)
Declaration
public AspNetCoreHostingEnvironment(IServiceProvider serviceProvider, IOptionsMonitor<HostingSettings> hostingSettings, IOptionsMonitor<WebRoutingSettings> webRoutingSettings, IWebHostEnvironment webHostEnvironment)
Parameters
Type |
Name |
Description |
IServiceProvider |
serviceProvider |
|
Microsoft.Extensions.Options.IOptionsMonitor<HostingSettings> |
hostingSettings |
|
Microsoft.Extensions.Options.IOptionsMonitor<WebRoutingSettings> |
webRoutingSettings |
|
Microsoft.AspNetCore.Hosting.IWebHostEnvironment |
webHostEnvironment |
|
View Source
AspNetCoreHostingEnvironment(IOptionsMonitor<HostingSettings>, IOptionsMonitor<WebRoutingSettings>, IWebHostEnvironment)
Declaration
public AspNetCoreHostingEnvironment(IOptionsMonitor<HostingSettings> hostingSettings, IOptionsMonitor<WebRoutingSettings> webRoutingSettings, IWebHostEnvironment webHostEnvironment)
Parameters
Type |
Name |
Description |
Microsoft.Extensions.Options.IOptionsMonitor<HostingSettings> |
hostingSettings |
|
Microsoft.Extensions.Options.IOptionsMonitor<WebRoutingSettings> |
webRoutingSettings |
|
Microsoft.AspNetCore.Hosting.IWebHostEnvironment |
webHostEnvironment |
|
View Source
AspNetCoreHostingEnvironment(IOptionsMonitor<HostingSettings>, IOptionsMonitor<WebRoutingSettings>, IWebHostEnvironment, IApplicationDiscriminator)
Declaration
public AspNetCoreHostingEnvironment(IOptionsMonitor<HostingSettings> hostingSettings, IOptionsMonitor<WebRoutingSettings> webRoutingSettings, IWebHostEnvironment webHostEnvironment, IApplicationDiscriminator applicationDiscriminator)
Parameters
Type |
Name |
Description |
Microsoft.Extensions.Options.IOptionsMonitor<HostingSettings> |
hostingSettings |
|
Microsoft.Extensions.Options.IOptionsMonitor<WebRoutingSettings> |
webRoutingSettings |
|
Microsoft.AspNetCore.Hosting.IWebHostEnvironment |
webHostEnvironment |
|
Microsoft.AspNetCore.DataProtection.Infrastructure.IApplicationDiscriminator |
applicationDiscriminator |
|
Properties
View Source
ApplicationId
Declaration
public string ApplicationId { get; }
Property Value
Type |
Description |
System.String |
|
View Source
ApplicationMainUrl
Declaration
public Uri ApplicationMainUrl { get; }
Property Value
View Source
ApplicationPhysicalPath
Declaration
public string ApplicationPhysicalPath { get; }
Property Value
Type |
Description |
System.String |
|
View Source
ApplicationVirtualPath
Declaration
public string ApplicationVirtualPath { get; }
Property Value
Type |
Description |
System.String |
|
View Source
IISVersion
Declaration
public Version? IISVersion { get; }
Property Value
Type |
Description |
System.Nullable<Version> |
|
View Source
IsDebugMode
Declaration
public bool IsDebugMode { get; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
IsHosted
Declaration
public bool IsHosted { get; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
LocalTempPath
Declaration
public string LocalTempPath { get; }
Property Value
Type |
Description |
System.String |
|
View Source
SiteName
Declaration
public string SiteName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
View Source
EnsureApplicationMainUrl(Nullable<Uri>)
Declaration
public void EnsureApplicationMainUrl(Uri? currentApplicationUrl)
Parameters
Type |
Name |
Description |
System.Nullable<Uri> |
currentApplicationUrl |
|
View Source
MapPathContentRoot(String)
Declaration
public string MapPathContentRoot(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
View Source
MapPathWebRoot(String)
Declaration
public string MapPathWebRoot(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
View Source
ToAbsolute(String)
Declaration
public string ToAbsolute(string virtualPath)
Parameters
Type |
Name |
Description |
System.String |
virtualPath |
|
Returns
Type |
Description |
System.String |
|