File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
src/Middleware/OutputCaching/src Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.OutputCaching;
66/// <summary>
77/// A policy that prevents the response from being served from cached.
88/// </summary>
9- internal class NoLookupPolicy : IOutputCachePolicy
9+ internal sealed class NoLookupPolicy : IOutputCachePolicy
1010{
1111 public static NoLookupPolicy Instance = new ( ) ;
1212
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.OutputCaching;
66/// <summary>
77/// A policy that prevents the response from being cached.
88/// </summary>
9- internal class NoStorePolicy : IOutputCachePolicy
9+ internal sealed class NoStorePolicy : IOutputCachePolicy
1010{
1111 public static NoStorePolicy Instance = new ( ) ;
1212
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ namespace Microsoft.AspNetCore.OutputCaching;
1010/// </summary>
1111internal sealed class VaryByHeaderPolicy : IOutputCachePolicy
1212{
13- private StringValues _headers { get ; set ; }
13+ private readonly StringValues _headers ;
1414
1515 /// <summary>
1616 /// Creates a policy that doesn't vary the cached content based on headers.
Original file line number Diff line number Diff line change 22// The .NET Foundation licenses this file to you under the MIT license.
33
44namespace Microsoft . AspNetCore . OutputCaching . Serialization ;
5- internal class FormatterEntry
5+ internal sealed class FormatterEntry
66{
77 public DateTimeOffset Created { get ; set ; }
88 public int StatusCode { get ; set ; }
You can’t perform that action at this time.
0 commit comments