15 references to NotFoundPage
Microsoft.AspNetCore.Components (10)
Routing\Router.cs (10)
146
if (
NotFoundPage
!= null)
151
throw new InvalidOperationException($"Setting {nameof(NotFound)} and {nameof(
NotFoundPage
)} properties simultaneously is not supported. Use either {nameof(NotFound)} or {nameof(
NotFoundPage
)}.");
154
if (!typeof(IComponent).IsAssignableFrom(
NotFoundPage
))
156
throw new InvalidOperationException($"The type {
NotFoundPage
.FullName} " +
160
var routeAttributes =
NotFoundPage
.GetCustomAttributes(typeof(RouteAttribute), inherit: true);
163
throw new InvalidOperationException($"The type {
NotFoundPage
.FullName} " +
394
bool renderContentIsProvided =
NotFoundPage
!= null || args.Path != null;
449
if (
NotFoundPage
!= null)
453
new RouteData(
NotFoundPage
, _emptyParametersDictionary));
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
119
throw new InvalidOperationException($"The {nameof(Router.
NotFoundPage
)} route must be specified or re-execution middleware has to be set to render not found content.");
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
949
string expectedError = $"The {nameof(Router.
NotFoundPage
)} route must be specified or re-execution middleware has to be set to render not found content.";
Microsoft.AspNetCore.Components.Tests (3)
Routing\RouterTest.cs (3)
293
{ nameof(Router.
NotFoundPage
), typeof(NotFoundTestComponent) }
326
{ nameof(Router.
NotFoundPage
), typeof(NotFoundTestComponent) }
425
{ nameof(Router.
NotFoundPage
), typeof(NotFoundTestComponent) }