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?

asked 2 years ago429 views
3 Answers
1
Accepted Answer

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
answered 2 years ago
1

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

profile pictureAWS
EXPERT
answered 2 years ago
0

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

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions