Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ public ActionDescriptor()
/// </summary>
public IDictionary<object, object> Properties { get; set; } = default!;

internal IFilterMetadata[]? CachedResuableFilters { get; set; }
internal IFilterMetadata[]? CachedReusableFilters { get; set; }
}
}
4 changes: 2 additions & 2 deletions src/Mvc/Mvc.Core/src/Filters/FilterFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static FilterFactoryResult GetAllFilters(
{
// If we know we can safely cache all filters and only the default filter provider is registered, we can
// probably re-use filters between requests.
actionDescriptor.CachedResuableFilters = filters;
actionDescriptor.CachedReusableFilters = filters;
}

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

if (actionContext.ActionDescriptor.CachedResuableFilters is { } cached)
if (actionContext.ActionDescriptor.CachedReusableFilters is { } cached)
{
return cached;
}
Expand Down