Skip to content

Commit 0d197e1

Browse files
Fix #2208: Add handler configuration documentation (#2221)
* Fix #2208: Add handler configuration documentation - Add Handler Configuration section to AspNetCoreServer.Hosting README - Document executable vs class library handler modes - Explain Main(string[] args) pitfall causing JsonSerializerException - Provide clear code examples for correct handler setup - Address community confusion about Lambda handler configuration * Added change file * Applied code review feedback * Applied code review feedback. * Delete .autover/changes/issue-2208-handler-configuration-docs.json * Fix: Add missing closing backticks to code block --------- Co-authored-by: Garrett Beatty <gcbeatty@amazon.com>
1 parent 01e3419 commit 0d197e1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • Libraries/src/Amazon.Lambda.AspNetCoreServer.Hosting

Libraries/src/Amazon.Lambda.AspNetCoreServer.Hosting/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ app.Run();
5050

5151
```
5252

53+
## Handler Configuration
54+
55+
The Lambda function handler must be set to the assembly name (e.g., `MyLambdaProject`). The `AddAWSLambdaHosting` method sets up the Lambda runtime client and registers the callback for processing Lambda events, so the handler should not use the class library format (`<assembly-name>::<full-type-name>::<method-name>`).
56+
5357
## Extension Points
5458

5559
`AddAWSLambdaHosting` accepts an optional `HostingOptions` configuration action that exposes the same customization hooks available in the traditional `AbstractAspNetCoreFunction` base class approach.

0 commit comments

Comments
 (0)