Simplify reflection of classes generated by annotations framework
- Vorherrschende Sprache
- C#
- Sterne
- 1.7k
- Forks
- 503
- Ø Merge
- 1 T. 18 Std.
- Gemergte PRs (30 T.)
- 21
Beschreibung
### Describe the feature
I'm using reflection to find the class generated by the annotation framework.
Whilst the approach is easily reproducible because the class name is "{Class}_{Method}_Generated" and the method is Method, it would be easier if the generated class was decorated with a attribute (possibly one coming from the BCL) that can be used to quickly find the generated class given the original class/function.
Additionally, it would be great if the generated class had the method with a fixed name like Handle or whatever.
Using a marking attribute and maybe even some interface with a single Handle method would make the process easier and less relying on internal implementation.
### Use Case
I'm working on a tool to improve development experience when working with Annotations Lambda
### Proposed Solution
_No response_
### Other Information
_No response_
### Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
### AWS .NET SDK and/or Package version used
Any
### Targeted .NET Platform
.NET 8 + Aspire
### Operating System and version
Any
Beitragsleitfaden
Rechercherichtung
Es werden keine Dateien oder Tests genannt. Beginne damit nachzuverfolgen, wie das Annotationsframework Klassen mit dem Namen "{Class}_{Method}_Generated" generiert und wie Verbraucher sie derzeit über Reflection finden. Abgeschlossen wäre dies, wenn ein abgestimmtes Metadatenattribut und ein stabiler Methoden- oder Schnittstellenvertrag zum Auffinden und Aufrufen der generierten Klasse festgelegt wären.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, csharp
- Bereich
- backend, devtools
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100