Skip to content

Commit 79e5320

Browse files
Fix CachedReusableFilters typo (#32213)
1 parent 41fb256 commit 79e5320

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ public ActionDescriptor()
7676
/// </summary>
7777
public IDictionary<object, object> Properties { get; set; } = default!;
7878

79-
internal IFilterMetadata[]? CachedResuableFilters { get; set; }
79+
internal IFilterMetadata[]? CachedReusableFilters { get; set; }
8080
}
8181
}

src/Mvc/Mvc.Core/src/Filters/FilterFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static FilterFactoryResult GetAllFilters(
6161
{
6262
// If we know we can safely cache all filters and only the default filter provider is registered, we can
6363
// probably re-use filters between requests.
64-
actionDescriptor.CachedResuableFilters = filters;
64+
actionDescriptor.CachedReusableFilters = filters;
6565
}
6666

6767
return new FilterFactoryResult(staticFilterItems, filters);
@@ -87,7 +87,7 @@ public static IFilterMetadata[] CreateUncachedFilters(
8787
throw new ArgumentNullException(nameof(cachedFilterItems));
8888
}
8989

90-
if (actionContext.ActionDescriptor.CachedResuableFilters is { } cached)
90+
if (actionContext.ActionDescriptor.CachedReusableFilters is { } cached)
9191
{
9292
return cached;
9393
}

0 commit comments

Comments
 (0)