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
Copy file name to clipboardExpand all lines: src/Components/Components/src/Routing/Router.cs
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ public async Task SetParametersAsync(ParameterView parameters)
147
147
#pragma warning disable CS0618// Type or member is obsolete
148
148
if(NotFound!=null)
149
149
{
150
-
Log.BothNotFoundParametersSet(_logger);
150
+
thrownewInvalidOperationException("Both NotFound and NotFoundPage parameters are set on Router component. NotFoundPage is preferred and NotFound will be deprecated. Consider using only NotFoundPage.");
151
151
}
152
152
#pragma warning restore CS0618// Type or member is obsolete
#pragma warning restore CS0618// Type or member is obsolete
454
-
455
-
[LoggerMessage(5,LogLevel.Warning,"Both NotFound and NotFoundPage parameters are set on Router component. NotFoundPage is preferred and NotFound will be deprecated. Consider using only NotFoundPage.",EventName="BothNotFoundParametersSet")]
0 commit comments