Fixed an issue with the !dumprequests command that was causing an error when reading dumps from a Kestrel host.
0:000> !dumprequests
Field 'Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2Stream<Microsoft.AspNetCore.Hosting.HostingApplication+Context>.<Method>k__BackingField' is not of type 'string'.
In Kestrel host dumps, the <Method>k__BackingField field in the HttpContext object is of Enum type, whereas in IIS host dumps, it is of String type. To address this, the _methodText field in the HttpContext object is now read if the <Method>k__BackingField field is not of String type.
Also added min width for each column for better readability.
Fixed an issue with the
!dumprequests
command that was causing an error when reading dumps from a Kestrel host.In Kestrel host dumps, the
<Method>k__BackingField
field in theHttpContext
object is ofEnum
type, whereas in IIS host dumps, it is ofString
type. To address this, the_methodText
field in theHttpContext
object is now read if the<Method>k__BackingField
field is not ofString
type.Also added min width for each column for better readability.