Skip to content

Static field disposed of on first lambda invocation #1740

Answered by normj
SamuelCox asked this question in Q&A
Discussion options

You must be logged in to vote

I'm missing what is disposing the service client? There is nothing in the Lambda programming model that would trigger a dispose.

To be clear you don't have to do everything static. In .NET the Init phase includes running the constructor of the type that contains the function handler.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SamuelCox
Comment options

Answer selected by SamuelCox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants