6 references to Redirect
Microsoft.AspNetCore.Http.Results (1)
Results.cs (1)
506
=> TypedResults.
Redirect
(url, permanent, preserveMethod);
Microsoft.AspNetCore.Http.Results.Tests (5)
TypedResultsTests.cs (5)
1242
Assert.Throws<ArgumentNullException>("url", () => TypedResults.
Redirect
(default(string)));
1248
Assert.Throws<ArgumentException>("url", () => TypedResults.
Redirect
(string.Empty));
1258
var result = TypedResults.
Redirect
(url);
1274
var result = TypedResults.
Redirect
(url, true);
1290
var result = TypedResults.
Redirect
(url, false, true);