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

Add Support For FastEndpoints #157

Open
KyleMcMaster opened this issue Nov 13, 2023 · 1 comment
Open

Add Support For FastEndpoints #157

KyleMcMaster opened this issue Nov 13, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@KyleMcMaster
Copy link
Collaborator

We already have support for Minimal API results so it would be awesome to see what work is needed to also support FastEndpoints like we do for Controllers/APIEndpoints. If any code is needed it could probably be added to the AspNetCore package unless we would like to add an Ardalis.Result.FastEndpoints package

@KyleMcMaster KyleMcMaster added the enhancement New feature or request label Nov 13, 2023
@KyleMcMaster KyleMcMaster self-assigned this Nov 17, 2023
@itsoli91
Copy link

itsoli91 commented Dec 28, 2023

FastEndpoint already has a SendResultAsync() to send any IResult instance produced by the Results static class in Minimal APIs. So simply you can call something like this:
await SendResultAsync(result.ToMinimalApiResult());
More info: https://fast-endpoints.com/docs/misc-conveniences#send-methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants