Skip to content

Move the code out of the APIGatewayProxyFunction in a 'start' method! #227

@arnd27

Description

@arnd27

I want to set a variable in my derived class, but at the moment the default constructor is called and all other methods are initialized before my variable in the derived class is set. Is it possible to move the code out of the consturctor in a 'start' method?

Background: I want to set the 'ASPNETCORE_ENVIRONMENT' with the 'InvokedFunctionArn' from 'ILambdaContext'. I have an working implementaton, but I made the changes in my local repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions