// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
using Microsoft.Extensions.Options;
namespace Microsoft.Extensions.DependencyInjection;
/// <summary>
/// Sets up default options for <see cref="MvcOptions"/>.
/// </summary>
internal sealed class TempDataMvcOptionsSetup : IConfigureOptions<MvcOptions>
{
public void Configure(MvcOptions options)
{
options.Filters.Add(new SaveTempDataAttribute());
}
}
|