File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/Microsoft.AspNetCore.SystemWebAdapters Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -27,3 +27,7 @@ T:System.Web.IHtmlString
2727T:System.Web.HtmlString
2828
2929T:Microsoft.AspNetCore.SystemWebAdapters.ITraceContext
30+
31+ # Only available .NET 4.7.2+
32+ P:System.Web.HttpRuntime.WebObjectActivator
33+
Original file line number Diff line number Diff line change @@ -17,5 +17,7 @@ private HttpRuntime()
1717
1818 public static string AppDomainAppPath => HostingEnvironmentAccessor . Current . Options . AppDomainAppPath ;
1919
20- public static Cache Cache => HostingEnvironmentAccessor . Current . Services . GetRequiredService < Cache > ( ) ;
20+ public static IServiceProvider WebObjectActivator => HostingEnvironmentAccessor . Current . Services ;
21+
22+ public static Cache Cache => WebObjectActivator . GetRequiredService < Cache > ( ) ;
2123}
You can’t perform that action at this time.
0 commit comments