src/AspNetCore/Mvc/Mvc/src/JsonProblemDetails/ProblemDetailsFactoryScoped.cs
/// <summary>
/// Gets the alternative instance string value.
/// </summary>
/// <returns>The alternative instance string.</returns>
Gets the alternative instance string value.
Gets the alternative instance string value .
protected virtual string? GetAlternativeInstance()
        {
            var request = httpContext.Request;
            var pathAndQuery = request.GetEncodedPathAndQuery();
            if (!string.IsNullOrEmpty(pathAndQuery)) {
                return $"{request.PathBase}{request.GetEncodedPathAndQuery()}";
            }
            return null;
        }
protected virtual string ? GetAlternativeInstance ( ) { var request = httpContext . Request ; var pathAndQuery = request . GetEncodedPathAndQuery ( ) ; if ( ! string . IsNullOrEmpty ( pathAndQuery ) ) { return $" { request . PathBase } { request . GetEncodedPathAndQuery ( ) } " ; } return null ; }
Gets the alternative instance string value.
Gets the alternative instance string value .
The alternative instance string.
The alternative instance string .