Skip to content

Commit c1f0d17

Browse files
Copilotwadepickett
andauthored
Correct IMemoryPoolFactory documentation: custom factories don't inherit auto-eviction (#36716)
* Initial plan * Fix IMemoryPoolFactory documentation - custom factories do not auto-evict Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com> * Update related memory pool factory documentation in Kestrel and HTTP.sys docs Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
1 parent 2716548 commit c1f0d17

5 files changed

Lines changed: 9 additions & 6 deletions

File tree

aspnetcore/fundamentals/servers/httpsys.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
22
title: HTTP.sys web server implementation in ASP.NET Core
3+
ai-usage: ai-assisted
34
author: tdykstra
45
description: Learn about HTTP.sys, a web server for ASP.NET Core on Windows. Built on the HTTP.sys kernel-mode driver, HTTP.sys is an alternative to Kestrel that can be used for direct connection to the Internet without IIS.
56
monikerRange: '>= aspnetcore-2.1'
67
ms.author: tdykstra
78
ms.custom: mvc
8-
ms.date: 08/04/2025
9+
ms.date: 01/29/2026
910
uid: fundamentals/servers/httpsys
1011
---
1112
# HTTP.sys web server implementation in ASP.NET Core

aspnetcore/fundamentals/servers/includes/memory-eviction2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The following code example shows a simple background service that uses the built
1818

1919
:::code language="csharp" source="~/fundamentals/servers/snippets/10.x/my-background-service.cs":::
2020

21-
To use a custom memory pool factory, make a class that implements `IMemoryPoolFactory` and register it with dependency injection, as the following example does. Memory pools created this way also benefit from the automatic eviction feature:
21+
To use a custom memory pool factory, make a class that implements `IMemoryPoolFactory` and register it with dependency injection, as the following example does. Memory pools created this way do not benefit from the automatic eviction feature unless you implement similar eviction logic in your custom factory:
2222

2323
:::code language="csharp" source="~/fundamentals/servers/snippets/10.x/memory-pool-factory.cs":::
2424

aspnetcore/fundamentals/servers/kestrel/memory-management.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
title: Memory management in Kestrel
3+
ai-usage: ai-assisted
34
author: tdykstra
45
description: Learn about memory management in Kestrel, including automatic eviction from memory pools and using memory pool metrics.
56
monikerRange: '>= aspnetcore-10.0'
67
ms.author: tdykstra
7-
ms.date: 12/04/2025
8+
ms.date: 01/29/2026
89
uid: fundamentals/servers/kestrel/memory-management
910
---
1011

@@ -34,7 +35,7 @@ The following code example shows a simple background service that uses the built
3435

3536
:::code language="csharp" source="~/fundamentals/servers/snippets/10.x/my-background-service.cs":::
3637

37-
To use a custom memory pool factory, make a class that implements `IMemoryPoolFactory` and register it with dependency injection, as the following example does. Memory pools created this way also benefit from the automatic eviction feature:
38+
To use a custom memory pool factory, make a class that implements `IMemoryPoolFactory` and register it with dependency injection, as the following example does. Memory pools created this way do not benefit from the automatic eviction feature unless you implement similar eviction logic in your custom factory:
3839

3940
:::code language="csharp" source="~/fundamentals/servers/snippets/10.x/memory-pool-factory.cs":::
4041

aspnetcore/release-notes/aspnetcore-10.0.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
title: What's new in ASP.NET Core in .NET 10
3+
ai-usage: ai-assisted
34
author: wadepickett
45
description: Learn about the new features in ASP.NET Core in .NET 10.
56
ms.author: wpickett
67
ms.custom: mvc
7-
ms.date: 11/11/2025
8+
ms.date: 01/29/2026
89
uid: aspnetcore-10
910
---
1011
# What's new in ASP.NET Core in .NET 10

aspnetcore/release-notes/aspnetcore-10/includes/memory-eviction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class MyBackgroundService : BackgroundService
4848
}
4949
```
5050

51-
To use your own memory pool factory, make a class that implements `IMemoryPoolFactory` and register it with dependency injection, as the following example does. Memory pools created this way also benefit from the automatic eviction feature:
51+
To use your own memory pool factory, make a class that implements `IMemoryPoolFactory` and register it with dependency injection, as the following example does. Memory pools created this way do not benefit from the automatic eviction feature unless you implement similar eviction logic in your custom factory:
5252

5353
```csharp
5454
services.AddSingleton<IMemoryPoolFactory<byte>,

0 commit comments

Comments
 (0)