ServiceStack.HttpResult.SoftRedirect C# (CSharp) Méthode

SoftRedirect() public static méthode

Respond with a 'Soft redirect' so smart clients (e.g. ajax) have access to the response and can decide whether or not they should redirect
public static SoftRedirect ( string newLocationUri, object response = null ) : HttpResult
newLocationUri string
response object
Résultat HttpResult
        public static HttpResult SoftRedirect(string newLocationUri, object response = null)
        {
            return new HttpResult(response)
            {
                Headers =
                {
                    { HttpHeaders.XLocation, newLocationUri },
                }
            };
        }