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

Endpoint filter factory was called twice. #59562

Open
1 task done
CoreDX9 opened this issue Dec 19, 2024 · 0 comments
Open
1 task done

Endpoint filter factory was called twice. #59562

CoreDX9 opened this issue Dec 19, 2024 · 0 comments
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc

Comments

@CoreDX9
Copy link

CoreDX9 commented Dec 19, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Minimal-API's endpoint filter factory was called twice.

Expected Behavior

Minimal-API's endpoint filter factory was called once.

Steps To Reproduce

app.MapGet("/api/a", () => { })
    .AddEndpointFilterFactory((ctx, next) =>
    {
        ctx.ApplicationServices.GetService<ILogger<WebApplication>>()!.LogError("Enter!!!!!!!!!!!!");
        return (ctxf) => next(ctxf);
    });

Image

Exceptions (if any)

No response

.NET Version

No response

Anything else?

  • ASP.NET Core version: 8.0 and 9.0.
  • VS version: 17.12.1
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-web-frameworks *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels label Dec 19, 2024
@martincostello martincostello added area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc and removed area-web-frameworks *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
Projects
None yet
Development

No branches or pull requests

2 participants