GcNotification Class¶
Registers a callback that fires each time a Gen2 garbage collection occurs, presumably due to memory pressure. For this to work no components can have a reference to the instance.
- Namespace
Microsoft.Extensions.Internal
- Assemblies
- Microsoft.Extensions.Caching.Memory