-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionshelp wantedUp for grabs. We would accept a PR to help resolve this issueUp for grabs. We would accept a PR to help resolve this issuetask
Milestone
Description
Static logging delegates will allocate a new copy for each generic type.
See #31333 (comment)
Should audit for all usages of static logging delegates to see if there are other places they are nested in generic types.
Before:
// RequestContext.Log.cs
internal sealed partial class RequestContext<TContext>
{
private static class Log { }
}
After:
// RequestContext.Log.cs
internal static class RequestContext
{
private static class Log { }
}
Edit: That won't work because Log will be private. How about internal static class RequestContextLog
with no nested Log type.
BrennanConroy
Metadata
Metadata
Assignees
Labels
area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionshelp wantedUp for grabs. We would accept a PR to help resolve this issueUp for grabs. We would accept a PR to help resolve this issuetask