Input:
services.AddMetricsTrackingMiddleware(
// Comment
opts =>
{
opts.IgnoredHttpStatusCodes = Enumerable.Range(300, 9).ToArray();
}
);
Output:
services.AddMetricsTrackingMiddleware(
// Comment
opts =>
{
opts.IgnoredHttpStatusCodes = Enumerable.Range(300, 9).ToArray();
});
Expected behavior:
services.AddMetricsTrackingMiddleware(
// Comment
opts =>
{
opts.IgnoredHttpStatusCodes = Enumerable.Range(300, 9).ToArray();
}
);
I sure this bug is caused by my changes in #1066. I totally forgot about cases with comments