Skip to content

Commit 8432b0e

Browse files
authored
Update aspnetcore/fundamentals/servers/includes/memory-eviction2.md
1 parent 0030e6d commit 8432b0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ 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 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:
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:
2222

2323
:::code language="csharp" source="~/fundamentals/servers/snippets/10.x/memory-pool-factory.cs":::
24+
25+
When you're using a memory pool, check the pool's [MaxBufferSize](https://github.com/dotnet/api/system.buffers.memorypool-1.maxbuffersize?view=net-9.0#system-buffers-memorypool-1-maxbuffersize) property.

0 commit comments

Comments
 (0)