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
In ASP.NET Core, pubinternal types are types that are declared as public but put in an .Internal namespace. While these types are public they have no support policy and are subject to breaking changes. Unfortunately accidental use of these types has been common, resulting in breaking changes to these projects and limiting our ability to maintain the framework.
If you give us some information on what you were trying to with it, we can try and suggest alternative ways of achieving the same thing.
@pranavkm The current use, which might be done on completely wrong assumptions, is in a custom implementation of ExceptionFilterAttribute.
In the OnException-method, we use context.Filters.OfType<ResponseCacheFilter>().FirstOrDefault() to resolve the filter and reset all properties. This is done to ensure that nothing like storage, location or duration is set for the returned error page.
After upgrading a project from ASP.NET Core 2.x and .NET Core 2.x to 3.x, I found that
Microsoft.AspNetCore.Mvc.Filters.ResponseCacheFilter
has becomeinternal
.It previously used to be
public
, when it wasMicrosoft.AspNetCore.Mvc.Internal.ResponseCacheFilter
.This brakes existing code, which relies on resolving this filter and modifying it.
The text was updated successfully, but these errors were encountered: