We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi dear; I want to pass the path of current request to Instance property of Problem Details. for example:
services.AddProblemDetails(options => { options.Map(ex => new ProblemDetails() { Title = ex.Code.ToString(), Detail = ex.Message, Status = (int?)ex.HttpStatusCode, Instance= httpContextAccessor.HttpContext.Request.Path }));
Can I access to httpContextAccessor?
The text was updated successfully, but these errors were encountered:
This seems like a duplicate of #46. I'll try to get this fixed today.
Sorry, something went wrong.
Thanks for your contribution
No branches or pull requests
Hi dear;
I want to pass the path of current request to Instance property of Problem Details.
for example:
services.AddProblemDetails(options =>
{
options.Map(ex => new ProblemDetails()
{
Title = ex.Code.ToString(),
Detail = ex.Message,
Status = (int?)ex.HttpStatusCode,
Instance= httpContextAccessor.HttpContext.Request.Path
}));
Can I access to httpContextAccessor?
The text was updated successfully, but these errors were encountered: