dotnet/roslyn

Structure guidelines wrong for class initializer, when using constructor which also uses a class initializer

Open

#65,970 建立於 2022年12月13日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)C# (4,257 fork)batch import
Bughelp wanted

倉庫指標

Star
 (20,414 star)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 256 個 PR)

描述

This issue has been moved from a ticket on Developer Community.


[regression] [worked-in:17.2.6]

    private HttpClient BuildClient()
    {
        return new HttpClient(new SocketsHttpHandler()
        {
            PooledConnectionIdleTimeout = TimeSpan.FromMinutes(5),
            PooledConnectionLifetime = TimeSpan.FromMinutes(10)
        })
        {
            Timeout = TimeSpan.FromMinutes(3.5)
        };
    }

image


Original Comments

Feedback Bot on 12/12/2022, 08:13 PM:

(private comment, text removed)


Original Solutions

(no solutions)

貢獻者指南