2 implementations of OnException
Microsoft.AspNetCore.Mvc.Core (1)
Filters\ExceptionFilterAttribute.cs (1)
26
public virtual void
OnException
(ExceptionContext context)
Microsoft.AspNetCore.Mvc.Core.Test (1)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1818
public void
OnException
(ExceptionContext context)
34 references to OnException
Microsoft.AspNetCore.Mvc.Core (3)
Diagnostics\MvcDiagnostics.cs (2)
522
/// An <see cref="EventData"/> that occurs before <see cref="IExceptionFilter.
OnException
(ExceptionContext)"/>.
573
/// An <see cref="EventData"/> that occurs after <see cref="IExceptionFilter.
OnException
(ExceptionContext)"/>.
Infrastructure\ResourceInvoker.cs (1)
748
filter.
OnException
(exceptionContext);
Microsoft.AspNetCore.Mvc.Core.Test (1)
Infrastructure\ControllerActionInvokerTest.cs (1)
784
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
Microsoft.AspNetCore.Mvc.Core.TestCommon (29)
CommonResourceInvokerTest.cs (29)
41
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
50
filter.Verify(f => f.
OnException
(It.IsAny<ExceptionContext>()), Times.Never());
88
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
92
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
110
filter2.Verify(f => f.
OnException
(It.IsAny<ExceptionContext>()), Times.Once());
170
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
185
f => f.
OnException
(It.IsAny<ExceptionContext>()),
203
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
223
f => f.
OnException
(It.IsAny<ExceptionContext>()),
237
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
251
f => f.
OnException
(It.IsAny<ExceptionContext>()),
269
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
289
f => f.
OnException
(It.IsAny<ExceptionContext>()),
454
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
469
filter2.Verify(f => f.
OnException
(It.IsAny<ExceptionContext>()), Times.Once());
479
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
488
filter.Verify(f => f.
OnException
(It.IsAny<ExceptionContext>()), Times.Once());
503
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
515
filter.Verify(f => f.
OnException
(It.IsAny<ExceptionContext>()), Times.Once());
531
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
537
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
551
filter1.Verify(f => f.
OnException
(It.IsAny<ExceptionContext>()), Times.Once());
552
filter2.Verify(f => f.
OnException
(It.IsAny<ExceptionContext>()), Times.Once());
570
exceptionFilter.Verify(f => f.
OnException
(It.IsAny<ExceptionContext>()), Times.Never());
695
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
728
exceptionFilter.Verify(f => f.
OnException
(It.IsAny<ExceptionContext>()), Times.Never());
1254
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
1976
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
2005
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionInvokerTest.cs (1)
1314
.Setup(f => f.
OnException
(It.IsAny<ExceptionContext>()))