Skip to content

Update Messaging Processing Framework template project #2020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 28, 2025

Conversation

GarrettBeatty
Copy link
Contributor

@GarrettBeatty GarrettBeatty commented Mar 24, 2025

Issue #, if available: https://sim.amazon.com/issues/DOTNET-8036

Description of changes:

  1. Update Startup to use ConfigureHostBuilder
  2. Give eaxmple launchSettings to use new test tool
  3. Update readme with latest steps for using with test tool

Testing

  1. Created new project from template and verified it ran correctly.
    image

it ran successfully with the handler and sender provided

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@GarrettBeatty GarrettBeatty reopened this Mar 24, 2025
@GarrettBeatty GarrettBeatty marked this pull request as ready for review March 25, 2025 19:05
@GarrettBeatty GarrettBeatty marked this pull request as draft March 25, 2025 19:06
@GarrettBeatty GarrettBeatty force-pushed the gcbeatty/messagingreadmeupdatestemplate branch from 6c9efe5 to 44e2917 Compare March 25, 2025 19:14
@GarrettBeatty GarrettBeatty marked this pull request as ready for review March 25, 2025 19:14
@GarrettBeatty
Copy link
Contributor Author

One thing i wasnt sure on if we want to include the launchSettings.json or not? Right now we do not (its in the gitignore and we also do not include it in the zip). So i opted to not include it. But I was thinking if we include it then the user will not have to create one themselves and it would be a little easier for them. Although i guess the proper solution is updating the toolkit to work with the new test tool

@@ -11,10 +11,11 @@
<PublishReadyToRun>true</PublishReadyToRun>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.6.1" />
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.7.0" />
<PackageReference Include="Amazon.Lambda.Core" Version="2.5.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.4.4" />
<PackageReference Include="Amazon.Lambda.SQSEvents" Version="2.2.0" />
<PackageReference Include="AWS.Messaging.Lambda" Version="0.9.0" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to update this version to the latest. Especially since this is the library we are demonstrating with the template.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to have latest message lambda version

@normj
Copy link
Member

normj commented Mar 25, 2025

One thing i wasnt sure on if we want to include the launchSettings.json or not? Right now we do not (its in the gitignore and we also do not include it in the zip). So i opted to not include it. But I was thinking if we include it then the user will not have to create one themselves and it would be a little easier for them. Although i guess the proper solution is updating the toolkit to work with the new test tool

That sounds like an effort we would do when we want to update all of the templates.

"Name": "Amazon.Lambda.Templates",
"Type": "Patch",
"ChangelogMessages": [
"Update message processing framework template."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: use the official name of the library to clearly state what was updated


The functions can be tested with the [Mock Lambda Test Tool](https://github.com/aws/aws-lambda-dotnet/tree/master/Tools/LambdaTestTool) in Visual Studio or other IDEs.
### Prerequisites
The functions can be tested with the [Mock Lambda Test Tool](https://github.com/aws/aws-lambda-dotnet/tree/master/Tools/LambdaTestTool-v2).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: drop the word "Mock". Also be consistent when you refer to the tool. I see 4 different names: Mock Lambda Test Tool, test tool, AWS Lambda Test Tool and Lambda Test Tool

@GarrettBeatty GarrettBeatty requested a review from normj March 27, 2025 17:04
@GarrettBeatty GarrettBeatty merged commit 784531d into dev Mar 28, 2025
5 checks passed
@GarrettBeatty GarrettBeatty deleted the gcbeatty/messagingreadmeupdatestemplate branch March 28, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants