Reusing C# Lambda functions

0

I have a few lambdas written in C#. There are some functions which can be reused among these lambdas. How can I achieve that?

gefragt vor 2 Jahren438 Aufrufe
3 Antworten
1
Akzeptierte Antwort

You can use the lambda code just as any other C# code, you can share base classes and references to common functionality, either by directly referencing the projects or by using NuGet packages. If all of your lambda functions are in the same repository extract the common code to classes/functions in a base project and reference that code from your Lambda functions or publish a NuGet package with the common code to be used by your Lmabda functions.

profile pictureAWS
beantwortet vor 2 Jahren
1

Have a look at Lambda Layers - I think it's what you're looking for.

profile pictureAWS
EXPERTE
beantwortet vor 2 Jahren
0

It does not list C# in the list of languages.

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen