Skip to content

Commit edaf9ff

Browse files
committed
PR feedback
1 parent 16efeac commit edaf9ff

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Middleware/OutputCaching/src/Policies/NoLookupPolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/Middleware/OutputCaching/src/Policies/NoStorePolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/Middleware/OutputCaching/src/Policies/VaryByHeaderPolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Microsoft.AspNetCore.OutputCaching;
1010
/// </summary>
1111
internal 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.

src/Middleware/OutputCaching/src/Serialization/FormatterEntry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
namespace 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; }

0 commit comments

Comments
 (0)