Skip to content

Commit a79ce19

Browse files
Fix XML Docs for Microsoft.AspNetCore.Http.Results (#44488)
Co-authored-by: Nikita Balabaev <[email protected]>
1 parent 0bf66dc commit a79ce19

File tree

1 file changed

+36
-12
lines changed

1 file changed

+36
-12
lines changed

src/Http/Http.Results/src/Results.cs

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,18 @@ public static IResult File(
424424
/// <summary>
425425
/// Redirects to the specified <paramref name="url"/>.
426426
/// <list type="bullet">
427-
/// <item>When <paramref name="permanent"/> and <paramref name="preserveMethod"/> are set, sets the <see cref="StatusCodes.Status308PermanentRedirect"/> status code.</item>
428-
/// <item>When <paramref name="preserveMethod"/> is set, sets the <see cref="StatusCodes.Status307TemporaryRedirect"/> status code.</item>
429-
/// <item>When <paramref name="permanent"/> is set, sets the <see cref="StatusCodes.Status301MovedPermanently"/> status code.</item>
430-
/// <item>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</item>
427+
/// <item>
428+
/// <description>When <paramref name="permanent"/> and <paramref name="preserveMethod"/> are set, sets the <see cref="StatusCodes.Status308PermanentRedirect"/> status code.</description>
429+
/// </item>
430+
/// <item>
431+
/// <description>When <paramref name="preserveMethod"/> is set, sets the <see cref="StatusCodes.Status307TemporaryRedirect"/> status code.</description>
432+
/// </item>
433+
/// <item>
434+
/// <description>When <paramref name="permanent"/> is set, sets the <see cref="StatusCodes.Status301MovedPermanently"/> status code.</description>
435+
/// </item>
436+
/// <item>
437+
/// <description>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</description>
438+
/// </item>
431439
/// </list>
432440
/// </summary>
433441
/// <param name="url">The URL to redirect to.</param>
@@ -440,10 +448,18 @@ public static IResult Redirect(string url, bool permanent = false, bool preserve
440448
/// <summary>
441449
/// Redirects to the specified <paramref name="localUrl"/>.
442450
/// <list type="bullet">
443-
/// <item>When <paramref name="permanent"/> and <paramref name="preserveMethod"/> are set, sets the <see cref="StatusCodes.Status308PermanentRedirect"/> status code.</item>
444-
/// <item>When <paramref name="preserveMethod"/> is set, sets the <see cref="StatusCodes.Status307TemporaryRedirect"/> status code.</item>
445-
/// <item>When <paramref name="permanent"/> is set, sets the <see cref="StatusCodes.Status301MovedPermanently"/> status code.</item>
446-
/// <item>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</item>
451+
/// <item>
452+
/// <description>When <paramref name="permanent"/> and <paramref name="preserveMethod"/> are set, sets the <see cref="StatusCodes.Status308PermanentRedirect"/> status code.</description>
453+
/// </item>
454+
/// <item>
455+
/// <description>When <paramref name="preserveMethod"/> is set, sets the <see cref="StatusCodes.Status307TemporaryRedirect"/> status code.</description>
456+
/// </item>
457+
/// <item>
458+
/// <description>When <paramref name="permanent"/> is set, sets the <see cref="StatusCodes.Status301MovedPermanently"/> status code.</description>
459+
/// </item>
460+
/// <item>
461+
/// <description>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</description>
462+
/// </item>
447463
/// </list>
448464
/// </summary>
449465
/// <param name="localUrl">The local URL to redirect to.</param>
@@ -456,10 +472,18 @@ public static IResult LocalRedirect(string localUrl, bool permanent = false, boo
456472
/// <summary>
457473
/// Redirects to the specified route.
458474
/// <list type="bullet">
459-
/// <item>When <paramref name="permanent"/> and <paramref name="preserveMethod"/> are set, sets the <see cref="StatusCodes.Status308PermanentRedirect"/> status code.</item>
460-
/// <item>When <paramref name="preserveMethod"/> is set, sets the <see cref="StatusCodes.Status307TemporaryRedirect"/> status code.</item>
461-
/// <item>When <paramref name="permanent"/> is set, sets the <see cref="StatusCodes.Status301MovedPermanently"/> status code.</item>
462-
/// <item>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</item>
475+
/// <item>
476+
/// <description>When <paramref name="permanent"/> and <paramref name="preserveMethod"/> are set, sets the <see cref="StatusCodes.Status308PermanentRedirect"/> status code.</description>
477+
/// </item>
478+
/// <item>
479+
/// <description>When <paramref name="preserveMethod"/> is set, sets the <see cref="StatusCodes.Status307TemporaryRedirect"/> status code.</description>
480+
/// </item>
481+
/// <item>
482+
/// <description>When <paramref name="permanent"/> is set, sets the <see cref="StatusCodes.Status301MovedPermanently"/> status code.</description>
483+
/// </item>
484+
/// <item>
485+
/// <description>Otherwise, configures <see cref="StatusCodes.Status302Found"/>.</description>
486+
/// </item>
463487
/// </list>
464488
/// </summary>
465489
/// <param name="routeName">The name of the route.</param>

0 commit comments

Comments
 (0)