Acp.UseCanonicalNameModule.GetRedirectUrl C# (CSharp) Метод

GetRedirectUrl() приватный Метод

private GetRedirectUrl ( HttpContext context ) : string
context System.Web.HttpContext
Результат string
        private string GetRedirectUrl(HttpContext context)
        {
            // fake location header for development
            string locationUrl = "http://localhost/current-issue/";
            try
            {
                locationUrl = context.Response.Headers["Location"];
                _log.Debug("Location: " + locationUrl);

            }
            catch (PlatformNotSupportedException ex)
            {
                _log.Warn("WARNING: PlatformNotSupportedException; ensure running under IIS7/.Net 3.5");
                _log.Warn(ex.Message);
                _log.Warn("WARNING: Using fake location header");
            }

            return locationUrl;
        }