Skip to content

Commit

Permalink
Merge pull request #157 from Lombiq/issue/TDEAL-8
Browse files Browse the repository at this point in the history
TDEAL-8: Use the new AddAsyncResultFilter extension method
  • Loading branch information
barthamark authored Dec 26, 2023
2 parents 304839f + 36f9651 commit 1f669d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lombiq.HelpfulExtensions/Extensions/TargetBlank/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Lombiq.HelpfulExtensions.Extensions.TargetBlank.Filters;
using Lombiq.HelpfulLibraries.AspNetCore.Extensions;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
Expand All @@ -16,7 +16,7 @@ public class Startup : StartupBase
public override void ConfigureServices(IServiceCollection services)
{
services.AddTransient<IConfigureOptions<ResourceManagementOptions>, ResourceManagementOptionsConfiguration>();
services.Configure<MvcOptions>(options => options.Filters.Add(typeof(TargetBlankFilter)));
services.AddAsyncResultFilter<TargetBlankFilter>();
}

public override void Configure(IApplicationBuilder app, IEndpointRouteBuilder routes, IServiceProvider serviceProvider)
Expand Down

0 comments on commit 1f669d7

Please sign in to comment.