예제 #1
0
 /// <summary>
 ///     Redirects the client to a given path or url
 /// </summary>
 /// <param name="redirectPath">The path or url to redirect to</param>
 public Task Redirect(string redirectPath)
 {
     UnderlyingResponse.Redirect(redirectPath);
     return(CompletedTask);
 }
예제 #2
0
 /// <summary>
 ///     Redirects the client to a given path or url
 /// </summary>
 /// <param name="redirectPath">The path or url to redirect to</param>
 /// <param name="permanent">Whether to respond with a temporary or permanent redirect</param>
 public Task Redirect(string redirectPath, bool permanent = false)
 {
     UnderlyingResponse.Redirect(redirectPath, permanent);
     return(CompletedRedirectTask);
 }