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
{{ message }}
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
public class HomeController : Controller, IDisposable
{
void IDisposable.Dispose()
{
Debug.WriteLine("Got disposed");
}
}
If you define this controller, then /Home/Dispose will be routed to the Controller.Dispose() method and will call it as an action.
Note that this requires you to reimplement IDisposable on the subclass. Just overriding the protected void Dispose() would not have any deleterious impact.
This is a similar case that also reproduces the bug:
public class HomeController : Controller
{
public new void Dispose()
{
Debug.WriteLine("Got disposed");
}
}