You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.SystemWebAdapters/Generated/Ref.Standard.cs
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -877,6 +877,9 @@ namespace System.Web.Hosting
877
877
publicstaticpartialclassHostingEnvironment
878
878
{
879
879
publicstaticstringApplicationID{get{thrownewSystem.PlatformNotSupportedException("Only supported when running on ASP.NET Core or System.Web");}}
880
+
publicstaticstringApplicationPhysicalPath{get{thrownewSystem.PlatformNotSupportedException("Only supported when running on ASP.NET Core or System.Web");}}
881
+
publicstaticstringApplicationVirtualPath{get{thrownewSystem.PlatformNotSupportedException("Only supported when running on ASP.NET Core or System.Web");}}
882
+
publicstaticSystem.Web.Caching.CacheCache{get{thrownewSystem.PlatformNotSupportedException("Only supported when running on ASP.NET Core or System.Web");}}
880
883
publicstaticboolIsHosted{get{thrownewSystem.PlatformNotSupportedException("Only supported when running on ASP.NET Core or System.Web");}}
881
884
publicstaticstringSiteName{get{thrownewSystem.PlatformNotSupportedException("Only supported when running on ASP.NET Core or System.Web");}}
882
885
publicstaticSystem.Web.Hosting.VirtualPathProviderVirtualPathProvider{get{thrownewSystem.PlatformNotSupportedException("Only supported when running on ASP.NET Core or System.Web");}}
Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.SystemWebAdapters/SystemWebAdaptersOptions.cs
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
#if NETCOREAPP
5
5
6
6
usingSystem;
7
+
usingSystem.Web;
7
8
usingSystem.Web.Hosting;
8
9
9
10
namespaceMicrosoft.AspNetCore.SystemWebAdapters;
@@ -12,14 +13,39 @@ public class SystemWebAdaptersOptions
12
13
{
13
14
privateVirtualPathProvider?_virtualPathProvider;
14
15
16
+
/// <summary>
17
+
/// Gets or sets the value used by <see cref="HostingEnvironment.ApplicationID"/>
18
+
/// </summary>
15
19
publicstringApplicationID{get;set;}=string.Empty;
16
20
21
+
/// <summary>
22
+
/// Gets or sets the value used by <see cref="HostingEnvironment.IsHosted"/>
23
+
/// </summary>
17
24
publicboolIsHosted{get;set;}
18
25
26
+
/// <summary>
27
+
/// Gets or sets the value used by <see cref="HostingEnvironment.SiteName"/>
28
+
/// </summary>
19
29
publicstringSiteName{get;set;}=string.Empty;
20
30
31
+
/// <summary>
32
+
/// Gets or sets the value used by <see cref="HttpRuntime.AppDomainAppVirtualPath"/>. Generally should be the same as <see cref="ApplicationVirtualPath"/> since ASP.NET Core does not have the concept of AppDomains.
/// Gets or sets the value used by <see cref="HttpRuntime.AppDomainAppPath"/>. Generally should be the same as <see cref="ApplicationPhysicalPath"/> since ASP.NET Core does not have the concept of AppDomains.
0 commit comments