© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•8mo ago•
97 replies
Queimaduras

Custom Binder Minimal API Error

I have a custom binder with a BindAsync to bind a string to a long after decrypting it.
It works for the Drafts endpoints, but with the Works endpoints I get an error saying that I should implement a TryParse() method, which I can't because I need the HttpContext and only BindAsync can provide me that.
How can the binder work for some endpoints and not for others when those endpoints are implemented the same way?

https://paste.mod.gg/cfwoixhyakos/2
BlazeBin - cfwoixhyakos
A tool for sharing your source code with the world!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Minimal Api Attributes
C#CC# / help
4y ago
✅ Minimal API IIS Deployment: 404 Error
C#CC# / help
2y ago
Parameter Binder error: implement TryParse
C#CC# / help
10mo ago
minimal api DI magic
C#CC# / help
2y ago
Next page