Skip to content

Fix possible deadlock issue with AspNetLayoutRendererBase.Register #632

@snakefoot

Description

@snakefoot

RetrieveHttpContextAccessor is a dangerous method, and should not be called frequently, because it can introduce deadlocks. See also: NLog/NLog#2064

Instead one should create a new class FuncAspNetLayoutRenderer, that can hold the func-delegate and perform caching of HttpContextAccessor.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions