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
/// Gets or sets the content to display when a match is found for the requested route.
@@ -143,6 +144,12 @@ public async Task SetParametersAsync(ParameterView parameters)
143
144
144
145
if(NotFoundPage!=null)
145
146
{
147
+
#pragma warning disable CS0618// Type or member is obsolete
148
+
if(NotFound!=null)
149
+
{
150
+
thrownewInvalidOperationException($"Setting {nameof(NotFound)} and {nameof(NotFoundPage)} properties simultaneously is not supported. Use either {nameof(NotFound)} or {nameof(NotFoundPage)}.");
151
+
}
152
+
#pragma warning restore CS0618// Type or member is obsolete
#pragma warning disable CS0618// Type or member is obsolete
432
442
[LoggerMessage(1,LogLevel.Debug,$"Displaying {nameof(NotFound)} because path '{{Path}}' with base URI '{{BaseUri}}' does not match any component route",EventName="DisplayingNotFound")]
0 commit comments