aws / aws/aws-lambda-dotnet

Is there an ETA for Configure method with ILambdaInvokeBuilder?

Aperta
#1,714 6 commenti 2 reazioni 0 assegnatari Vedi su GitHub
annotations feature-request m p2 queued
Lingua principale
C#
Stelle
1.7k
Fork
503
Merge medio
1g 18h
PR unite (30g)
21

Descrizione

### Describe the feature

Hey I want to create middleware or filter pipeline for lambda function
There is note about middleware in design doc but no information when it will happen

There are old PR without CR like [this](https://github.com/aws/aws-lambda-dotnet/pull/1203) and idk if I should contribute

### Use Case

global error handling, extracting standard headers like trace-id

### Proposed Solution

I have workaround with more generated code and castle.core for intercepting calls
For class FunctionHandler I can generate IFunctionHandler and FunctionHandlerWrapper.
Next I can call FunctionHandler from FunctionHandlerWrapper.
Also need to register FunctionHandler as TryAddSingleton so it is interceptable.

Maybe before full middleware pipeline implementation can we add option to generate IFunctionHandler by the annotation framework and resolve it from DI by interface in generated code?

### Other Information

_No response_

### Acknowledgements

- [X] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### AWS .NET SDK and/or Package version used

Amazon.Lambda.Annotations --version 1.2.0

### Targeted .NET Platform

.NET 6

### Operating System and version

AmazonLinux

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Non sono indicati file di implementazione, test o punti di ingresso. Inizia esaminando la nota sul middleware nel documento di progettazione e il precedente PR #1203, quindi chiarisci se l’obiettivo è una pipeline middleware completa o la risoluzione tramite DI di un IFunctionHandler generato. Il risultato deve essere una funzionalità definita e circoscritta, con requisiti chiari per l’implementazione e la validazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, csharp
Ambito
backend
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.