Skip to content

MemoryCache shouldn't capture AsyncLocals into its Timer #24533

@benaadams

Description

@benaadams

Causing those AsyncLocal values to live forever for the default cache and as long as the cache for custom caches

For ASP.NET Core can capture logging scope, HttpContext, ConcurrentBag items, Authentication (example https://github.com/dotnet/corefx/issues/25477#issuecomment-346866897); other state etc

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions