dotnet / dotnet/aspnetcore

Improve debugging of RequestTimeoutPolicy metadata

Open
#50,526 1 comment 0 reactions 0 assignees View on GitHub
area-networking
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

RequestTimeoutPolicy doesn't display useful information when debugging:

![image](https://github.com/dotnet/aspnetcore/assets/303201/779ea33a-daf7-40b4-aff7-5d27969d5698)

### Describe the solution you'd like

Add DebuggerDisplay and override ToString on RequestTimeoutPolicy. See https://github.com/dotnet/aspnetcore/blob/00d0038f937f0059a847fde504649fe33ec935e0/src/Http/Http.Abstractions/src/Metadata/AcceptsMetadata.cs

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.