Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TDEAL-8: Use the new AddAsyncResultFilter extension method #102

Merged
merged 3 commits into from
Dec 26, 2023
Merged
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
4 changes: 2 additions & 2 deletions Lombiq.BaseTheme/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
using Lombiq.BaseTheme.Permissions;
using Lombiq.BaseTheme.Services;
using Lombiq.DataTables.Navigation;
using Lombiq.HelpfulLibraries.AspNetCore.Extensions;
using Lombiq.HelpfulLibraries.OrchardCore.ResourceManagement;
using Lombiq.HelpfulLibraries.OrchardCore.Shapes;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
Expand All @@ -26,7 +26,7 @@ public override void ConfigureServices(IServiceCollection services)
{
services.AddScoped<ICssClassHolder, CssClassHolder>();
services.AddTransient<IConfigureOptions<ResourceManagementOptions>, ResourceManagementOptionsConfiguration>();
services.Configure<MvcOptions>(options => options.Filters.Add(typeof(MainMenuWidgetFilter)));
services.AddAsyncResultFilter<MainMenuWidgetFilter>();

services.AddDataMigration<LayoutInjectionMigrations>();
services.AddDataMigration<RecipeMigrations>();
Expand Down