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?

3개 답변
1
수락된 답변

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
답변함 2년 전
1

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

profile pictureAWS
전문가
답변함 2년 전
0

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

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠