Skip to content

Commit db7227f

Browse files
authored
Make alternatives 3b (non-DI) and 3c (DI) functionally identical (#34022)
1 parent 45f3015 commit db7227f

File tree

1 file changed

+1
-1
lines changed
  • aspnetcore/performance/caching/output/samples/7.x

1 file changed

+1
-1
lines changed

aspnetcore/performance/caching/output/samples/7.x/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static void Main(string[] args)
5959
//<policies3c>
6060
builder.Services.AddOutputCache(options =>
6161
{
62-
options.AddBasePolicy(builder =>
62+
options.AddPolicy("CachePost", builder =>
6363
builder.AddPolicy<MyCustomPolicy2>(), true);
6464
});
6565
//</policies3c>

0 commit comments

Comments
 (0)