File tree 4 files changed +4
-4
lines changed
src/Middleware/OutputCaching/src
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;
6
6
/// <summary>
7
7
/// A policy that prevents the response from being served from cached.
8
8
/// </summary>
9
- internal class NoLookupPolicy : IOutputCachePolicy
9
+ internal sealed class NoLookupPolicy : IOutputCachePolicy
10
10
{
11
11
public static NoLookupPolicy Instance = new ( ) ;
12
12
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.OutputCaching;
6
6
/// <summary>
7
7
/// A policy that prevents the response from being cached.
8
8
/// </summary>
9
- internal class NoStorePolicy : IOutputCachePolicy
9
+ internal sealed class NoStorePolicy : IOutputCachePolicy
10
10
{
11
11
public static NoStorePolicy Instance = new ( ) ;
12
12
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ namespace Microsoft.AspNetCore.OutputCaching;
10
10
/// </summary>
11
11
internal sealed class VaryByHeaderPolicy : IOutputCachePolicy
12
12
{
13
- private StringValues _headers { get ; set ; }
13
+ private readonly StringValues _headers ;
14
14
15
15
/// <summary>
16
16
/// Creates a policy that doesn't vary the cached content based on headers.
Original file line number Diff line number Diff line change 2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
4
namespace Microsoft . AspNetCore . OutputCaching . Serialization ;
5
- internal class FormatterEntry
5
+ internal sealed class FormatterEntry
6
6
{
7
7
public DateTimeOffset Created { get ; set ; }
8
8
public int StatusCode { get ; set ; }
You can’t perform that action at this time.
0 commit comments