-
Notifications
You must be signed in to change notification settings - Fork 490
Update additional templates to use annotations #1287
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
Conversation
...ueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Function.cs
Outdated
Show resolved
Hide resolved
...ueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Function.cs
Outdated
Show resolved
Hide resolved
/// <returns>The API Gateway response.</returns> | ||
public APIGatewayProxyResponse Get(APIGatewayProxyRequest request, ILambdaContext context) | ||
/// <remarks> | ||
/// This uses the Lambda Annotations programming model to bridge the gap between |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a link to the README also call out that it takes care of syncing with CloudFormation. It is important users realize this change in behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added both:
- A link to the GitHub readme
- A line about template syncing.
I couldn't figure out how to do a <see>
link to the local readme, I think because it's not a .NET object.
...BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Readme.md
Outdated
Show resolved
Hide resolved
...BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Readme.md
Outdated
Show resolved
Hide resolved
...ueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Function.cs
Outdated
Show resolved
Hide resolved
...nts/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/Function.cs
Outdated
Show resolved
Hide resolved
@@ -1,7 +1,7 @@ | |||
{ | |||
"display-name": "Annotations Framework", | |||
"system-name": "Annotations", | |||
"description": "(Preview) Use the .NET Lambda Annotations framework to write Lambda Functions.", | |||
"description": "Use the .NET Lambda Annotations framework to write Lambda Functions.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Rename this to
Annotations Framework Sample
- Edit the description to here to show how this is a sample to demonstrate the features of the framework.
- Show off the DI by adding an
ICalculatorService
and registering it in the DI. Then updatedStartup
class to register it. - In the test project you could create a Mock
ICalculatorService
to show how with DI you can mocking the services.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
I only injected the ICalculatorService
into the constructor since that felt more realistic, but we could also do a [FromServices]
for the sake of it.
.../BlueprintDefinitions/vs2022/AnnotationsFramework/template/src/BlueprintBaseName.1/Readme.md
Outdated
Show resolved
Hide resolved
ee17af0
to
48a3d87
Compare
48a3d87
to
972f0d0
Compare
…ew messaging from annotations template
972f0d0
to
bec4d79
Compare
Finished a round of updates:
|
@@ -1,10 +1,18 @@ | |||
# .NET Lambda Annotations Framework (Preview) | |||
# Amazon.Lambda.Annotations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just the entire package README copied and pasted, don't think we need to re-review content here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a sanity check deployment through Visual Studio with 3 templates being updated here and they all deployed correctly.
Blueprints/BlueprintDefinitions/vs2022/AnnotationsFramework/blueprint-manifest.json
Outdated
Show resolved
Hide resolved
...ions/vs2022/AnnotationsFramework/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj
Show resolved
Hide resolved
...initions/vs2022/AnnotationsFramework/template/test/BlueprintBaseName.1.Tests/FunctionTest.cs
Outdated
Show resolved
Hide resolved
...ts/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/Functions.cs
Outdated
Show resolved
Hide resolved
...BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Readme.md
Outdated
Show resolved
Hide resolved
...BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Readme.md
Outdated
Show resolved
Hide resolved
...rints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/Readme.md
Outdated
Show resolved
Hide resolved
...rints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/Readme.md
Outdated
Show resolved
Hide resolved
...rints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/Readme.md
Outdated
Show resolved
Hide resolved
...nts/BlueprintDefinitions/vs2022/AnnotationsFramework/template/.template.config/template.json
Outdated
Show resolved
Hide resolved
...ions/vs2022/AnnotationsFramework/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj
Outdated
Show resolved
Hide resolved
@@ -15,6 +15,9 @@ public class Startup | |||
/// </summary> | |||
public void ConfigureServices(IServiceCollection services) | |||
{ | |||
// Here we'll add an instance of our calculator service that be used by each function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: missing "will" before "be used"
Issue #, if available: DOTNET-6189
Description of changes:
Updates to the Visual Studio 2022 templates:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.