diff --git a/.autover/changes/annotations-generated-code.json b/.autover/changes/annotations-generated-code.json
new file mode 100644
index 000000000..5c03704ea
--- /dev/null
+++ b/.autover/changes/annotations-generated-code.json
@@ -0,0 +1,11 @@
+{
+ "Projects": [
+ {
+ "Name": "Amazon.Lambda.Annotations",
+ "Type": "Patch",
+ "ChangelogMessages": [
+ "Mark generated Lambda handler and executable bootstrap code for coverage and analysis tools."
+ ]
+ }
+ ]
+}
diff --git a/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/ExecutableAssembly.cs b/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/ExecutableAssembly.cs
index ba6a0dad4..0e215b826 100644
--- a/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/ExecutableAssembly.cs
+++ b/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/ExecutableAssembly.cs
@@ -33,7 +33,8 @@ public partial class ExecutableAssembly : ExecutableAssemblyBase
///
public virtual string TransformText()
{
- this.Write("// \r\n\r\nusing System;\r\nusing System.Linq;\r\nusing System.Collectio" +
+ this.Write(GeneratedCodeMetadata.Header);
+ this.Write("using System;\r\nusing System.Linq;\r\nusing System.Collectio" +
"ns.Generic;\r\nusing System.Text;\r\nusing System.Threading.Tasks;\r\nusing System.IO;" +
"\r\nusing Amazon.Lambda.Core;\r\n\r\nnamespace ");
@@ -42,14 +43,17 @@ public virtual string TransformText()
#line default
#line hidden
- this.Write(@";
-
-public class GeneratedProgram
+ this.Write(";\r\n\r\n");
+ this.Write(GeneratedCodeMetadata.Attribute + "\r\n");
+ this.Write(GeneratedCodeMetadata.ExcludeFromCoverage + "\r\n");
+ this.Write(@"public class GeneratedProgram
{
///
/// This is responsible for inspecting the 'ANNOTATIONS_HANDLER' environment variable and invoking the appropriate Lambda function handler.
///
- public static async Task Main(string[] args)
+");
+ this.Write(" " + GeneratedCodeMetadata.Attribute + "\r\n");
+ this.Write(@" public static async Task Main(string[] args)
{
switch (Environment.GetEnvironmentVariable(""ANNOTATIONS_HANDLER""))
diff --git a/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/ExecutableAssembly.tt b/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/ExecutableAssembly.tt
index d3e3ee7e0..5b3b07932 100644
--- a/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/ExecutableAssembly.tt
+++ b/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/ExecutableAssembly.tt
@@ -8,8 +8,7 @@
<#@ import namespace="Amazon.Lambda.Annotations.SourceGenerator.Validation" #>
<#@ import namespace="Amazon.Lambda.Annotations.SourceGenerator.Models" #>
<#@ import namespace="Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes" #>
-//
-
+<# this.Write(GeneratedCodeMetadata.Header); #>
using System;
using System.Linq;
using System.Collections.Generic;
@@ -20,11 +19,14 @@ using Amazon.Lambda.Core;
namespace <#= this._containingNamespace #>;
+<#= GeneratedCodeMetadata.Attribute #>
+<#= GeneratedCodeMetadata.ExcludeFromCoverage #>
public class GeneratedProgram
{
///
/// This is responsible for inspecting the 'ANNOTATIONS_HANDLER' environment variable and invoking the appropriate Lambda function handler.
///
+ <#= GeneratedCodeMetadata.Attribute #>
public static async Task Main(string[] args)
{
diff --git a/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/GeneratedCodeMetadata.cs b/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/GeneratedCodeMetadata.cs
new file mode 100644
index 000000000..6422e5b5f
--- /dev/null
+++ b/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/GeneratedCodeMetadata.cs
@@ -0,0 +1,23 @@
+// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+// SPDX-License-Identifier: Apache-2.0
+
+namespace Amazon.Lambda.Annotations.SourceGenerator.Templates
+{
+ internal static class GeneratedCodeMetadata
+ {
+ private static readonly System.Reflection.AssemblyName GeneratorAssembly = typeof(Generator).Assembly.GetName();
+
+ internal const string ExcludeFromCoverage = "[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]";
+
+ internal static readonly string Attribute =
+ $"[global::System.CodeDom.Compiler.GeneratedCode(\"{GeneratorAssembly.Name}\", \"{GeneratorAssembly.Version}\")]";
+
+ internal static readonly string Header =
+ "// \r\n" +
+ $"// This code was generated by {GeneratorAssembly.Name} {GeneratorAssembly.Version}.\r\n" +
+ "//\r\n" +
+ "// Changes to this file may cause incorrect behavior and will be lost if\r\n" +
+ "// the code is regenerated.\r\n" +
+ "// \r\n\r\n";
+ }
+}
diff --git a/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/LambdaFunctionTemplate.cs b/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/LambdaFunctionTemplate.cs
index f9b6f04ef..9c0d5b5b8 100644
--- a/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/LambdaFunctionTemplate.cs
+++ b/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/LambdaFunctionTemplate.cs
@@ -34,7 +34,7 @@ public partial class LambdaFunctionTemplate : LambdaFunctionTemplateBase
///
public virtual string TransformText()
{
- this.Write("// \r\n\r\n");
+ this.Write(GeneratedCodeMetadata.Header);
#line 14 "C:\codebase\V3\HLL\aws-lambda-dotnet\Libraries\src\Amazon.Lambda.Annotations.SourceGenerator\Templates\LambdaFunctionTemplate.tt"
@@ -94,6 +94,8 @@ public virtual string TransformText()
#line default
#line hidden
+ this.Write(" " + GeneratedCodeMetadata.Attribute + "\r\n");
+ this.Write(" " + GeneratedCodeMetadata.ExcludeFromCoverage + "\r\n");
this.Write(" public class ");
#line 33 "C:\codebase\V3\HLL\aws-lambda-dotnet\Libraries\src\Amazon.Lambda.Annotations.SourceGenerator\Templates\LambdaFunctionTemplate.tt"
@@ -137,6 +139,7 @@ public virtual string TransformText()
#line default
#line hidden
+ this.Write(" " + GeneratedCodeMetadata.Attribute + "\r\n");
this.Write(" public ");
#line 41 "C:\codebase\V3\HLL\aws-lambda-dotnet\Libraries\src\Amazon.Lambda.Annotations.SourceGenerator\Templates\LambdaFunctionTemplate.tt"
diff --git a/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/LambdaFunctionTemplate.tt b/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/LambdaFunctionTemplate.tt
index b7f21abcc..1959ad053 100644
--- a/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/LambdaFunctionTemplate.tt
+++ b/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Templates/LambdaFunctionTemplate.tt
@@ -9,8 +9,7 @@
<#@ import namespace="Amazon.Lambda.Annotations.SourceGenerator.Models.Attributes" #>
<#@ import namespace="Microsoft.CodeAnalysis" #>
<#@ import namespace="Amazon.Lambda.Annotations.SourceGenerator.Validation" #>
-//
-
+<# this.Write(GeneratedCodeMetadata.Header); #>
<#
foreach (var ns in _model.GeneratedMethod.Usings)
{
@@ -31,6 +30,8 @@ namespace <#= _model.LambdaMethod.ContainingNamespace #>
<#
}
#>
+ <#= GeneratedCodeMetadata.Attribute #>
+ <#= GeneratedCodeMetadata.ExcludeFromCoverage #>
public class <#= _model.GeneratedMethod.ContainingType.Name #>
{
<#
@@ -47,6 +48,7 @@ this.Write(new FieldsAndConstructor(_model).TransformText());
<#
}
#>
+ <#= GeneratedCodeMetadata.Attribute #>
public <#= _model.LambdaMethod.ReturnsVoidOrGenericTask ? "async " : "" #><#= _model.GeneratedMethod.ReturnType.FullName #> <#= _model.LambdaMethod.Name #>(<#= _model.GeneratedMethod.Parameters.Any() ? string.Join(", ", _model.GeneratedMethod.Parameters.Select(p => $"{p.Type.FullName} {p.Name}")) : "Stream stream" #>)
{
<#
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ALB/ValidALBEvents_HandleRequest_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ALB/ValidALBEvents_HandleRequest_Generated.g.cs
index d5157a04e..0ab459718 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ALB/ValidALBEvents_HandleRequest_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ALB/ValidALBEvents_HandleRequest_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp.ALBEventExamples
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ValidALBEvents_HandleRequest_Generated
{
private readonly ValidALBEvents validALBEvents;
@@ -36,6 +43,7 @@ public ValidALBEvents_HandleRequest_Generated()
/// The ALB request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task HandleRequest(Amazon.Lambda.ApplicationLoadBalancerEvents.ApplicationLoadBalancerRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var response = await validALBEvents.HandleRequest(__request__, __context__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ALB/ValidALBEvents_Hello_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ALB/ValidALBEvents_Hello_Generated.g.cs
index db98191fd..3fef98524 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ALB/ValidALBEvents_Hello_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ALB/ValidALBEvents_Hello_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp.ALBEventExamples
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ValidALBEvents_Hello_Generated
{
private readonly ValidALBEvents validALBEvents;
@@ -36,6 +43,7 @@ public ValidALBEvents_Hello_Generated()
/// The ALB request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.ApplicationLoadBalancerEvents.ApplicationLoadBalancerResponse Hello(Amazon.Lambda.ApplicationLoadBalancerEvents.ApplicationLoadBalancerRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var response = validALBEvents.Hello(__request__, __context__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthNameFallback_GetUserId_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthNameFallback_GetUserId_Generated.g.cs
index d8d347013..c0970d76e 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthNameFallback_GetUserId_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthNameFallback_GetUserId_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class AuthNameFallback_GetUserId_Generated
{
private readonly AuthNameFallback authNameFallback;
@@ -36,6 +43,7 @@ public AuthNameFallback_GetUserId_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task GetUserId(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_HttpApiAuthorizeV1_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_HttpApiAuthorizeV1_Generated.g.cs
index 8bb600788..56b82a502 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_HttpApiAuthorizeV1_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_HttpApiAuthorizeV1_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestCustomAuthorizerApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class AuthorizerFunction_HttpApiAuthorizeV1_Generated
{
private readonly AuthorizerFunction authorizerFunction;
@@ -36,6 +43,7 @@ public AuthorizerFunction_HttpApiAuthorizeV1_Generated()
/// The API Gateway authorizer request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerResponse HttpApiAuthorizeV1(Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var response = authorizerFunction.HttpApiAuthorizeV1(__request__, __context__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_HttpApiAuthorize_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_HttpApiAuthorize_Generated.g.cs
index 532bf2544..f8538a4c3 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_HttpApiAuthorize_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_HttpApiAuthorize_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestCustomAuthorizerApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class AuthorizerFunction_HttpApiAuthorize_Generated
{
private readonly AuthorizerFunction authorizerFunction;
@@ -36,6 +43,7 @@ public AuthorizerFunction_HttpApiAuthorize_Generated()
/// The API Gateway authorizer request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerV2SimpleResponse HttpApiAuthorize(Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerV2Request __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var response = authorizerFunction.HttpApiAuthorize(__request__, __context__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_RestApiAuthorize_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_RestApiAuthorize_Generated.g.cs
index 99e78e7a2..52e0ff6ee 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_RestApiAuthorize_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_RestApiAuthorize_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestCustomAuthorizerApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class AuthorizerFunction_RestApiAuthorize_Generated
{
private readonly AuthorizerFunction authorizerFunction;
@@ -36,6 +43,7 @@ public AuthorizerFunction_RestApiAuthorize_Generated()
/// The API Gateway authorizer request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerResponse RestApiAuthorize(Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var response = authorizerFunction.RestApiAuthorize(__request__, __context__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_SimpleHttpApiAuthorize_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_SimpleHttpApiAuthorize_Generated.g.cs
index d5574ab2e..516fdaa92 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_SimpleHttpApiAuthorize_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_SimpleHttpApiAuthorize_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestCustomAuthorizerApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class AuthorizerFunction_SimpleHttpApiAuthorize_Generated
{
private readonly AuthorizerFunction authorizerFunction;
@@ -37,6 +44,7 @@ public AuthorizerFunction_SimpleHttpApiAuthorize_Generated()
/// The API Gateway authorizer request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public System.IO.Stream SimpleHttpApiAuthorize(Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerV2Request __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var __bindingFailed__ = false;
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_SimpleRestApiAuthorize_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_SimpleRestApiAuthorize_Generated.g.cs
index c97abbf43..90907f114 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_SimpleRestApiAuthorize_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/AuthorizerFunction_SimpleRestApiAuthorize_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestCustomAuthorizerApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class AuthorizerFunction_SimpleRestApiAuthorize_Generated
{
private readonly AuthorizerFunction authorizerFunction;
@@ -37,6 +44,7 @@ public AuthorizerFunction_SimpleRestApiAuthorize_Generated()
/// The API Gateway authorizer request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public System.IO.Stream SimpleRestApiAuthorize(Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var __bindingFailed__ = false;
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ComplexCalculator_Add_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ComplexCalculator_Add_Generated.g.cs
index ca7df97cf..c9d79519e 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ComplexCalculator_Add_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ComplexCalculator_Add_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ComplexCalculator_Add_Generated
{
private readonly ComplexCalculator complexCalculator;
@@ -36,6 +43,7 @@ public ComplexCalculator_Add_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyResponse Add(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var complexNumbers = __request__.Body;
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ComplexCalculator_Subtract_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ComplexCalculator_Subtract_Generated.g.cs
index d57f28af8..73323b776 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ComplexCalculator_Subtract_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ComplexCalculator_Subtract_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ComplexCalculator_Subtract_Generated
{
private readonly ComplexCalculator complexCalculator;
@@ -36,6 +43,7 @@ public ComplexCalculator_Subtract_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyResponse Subtract(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerHttpApiExample_HttpApiAuthorizer_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerHttpApiExample_HttpApiAuthorizer_Generated.g.cs
index ce3065faa..2a62b4bf4 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerHttpApiExample_HttpApiAuthorizer_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerHttpApiExample_HttpApiAuthorizer_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class CustomAuthorizerHttpApiExample_HttpApiAuthorizer_Generated
{
private readonly CustomAuthorizerHttpApiExample customAuthorizerHttpApiExample;
@@ -36,6 +43,7 @@ public CustomAuthorizerHttpApiExample_HttpApiAuthorizer_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task HttpApiAuthorizer(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerHttpApiV1Example_HttpApiV1Authorizer_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerHttpApiV1Example_HttpApiV1Authorizer_Generated.g.cs
index 90b6189df..9e4060b92 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerHttpApiV1Example_HttpApiV1Authorizer_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerHttpApiV1Example_HttpApiV1Authorizer_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class CustomAuthorizerHttpApiV1Example_HttpApiV1Authorizer_Generated
{
private readonly CustomAuthorizerHttpApiV1Example customAuthorizerHttpApiV1Example;
@@ -36,6 +43,7 @@ public CustomAuthorizerHttpApiV1Example_HttpApiV1Authorizer_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task HttpApiV1Authorizer(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerNonStringExample_HttpApiWithNonString_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerNonStringExample_HttpApiWithNonString_Generated.g.cs
index ff35b26dc..c589f9ab9 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerNonStringExample_HttpApiWithNonString_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerNonStringExample_HttpApiWithNonString_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class CustomAuthorizerNonStringExample_HttpApiWithNonString_Generated
{
private readonly CustomAuthorizerNonStringExample customAuthorizerNonStringExample;
@@ -36,6 +43,7 @@ public CustomAuthorizerNonStringExample_HttpApiWithNonString_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task HttpApiWithNonString(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerRestExample_RestAuthorizer_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerRestExample_RestAuthorizer_Generated.g.cs
index 0d311fdd9..9bab4ab8b 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerRestExample_RestAuthorizer_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerRestExample_RestAuthorizer_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class CustomAuthorizerRestExample_RestAuthorizer_Generated
{
private readonly CustomAuthorizerRestExample customAuthorizerRestExample;
@@ -36,6 +43,7 @@ public CustomAuthorizerRestExample_RestAuthorizer_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task RestAuthorizer(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerWithIHttpResultsExample_AuthorizerWithIHttpResults_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerWithIHttpResultsExample_AuthorizerWithIHttpResults_Generated.g.cs
index 8a55cf667..a2af51605 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerWithIHttpResultsExample_AuthorizerWithIHttpResults_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomAuthorizerWithIHttpResultsExample_AuthorizerWithIHttpResults_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class CustomAuthorizerWithIHttpResultsExample_AuthorizerWithIHttpResults_Generated
{
private readonly CustomAuthorizerWithIHttpResultsExample customAuthorizerWithIHttpResultsExample;
@@ -37,6 +44,7 @@ public CustomAuthorizerWithIHttpResultsExample_AuthorizerWithIHttpResults_Genera
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public System.IO.Stream AuthorizerWithIHttpResults(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV1Async_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV1Async_Generated.g.cs
index e0451e9fd..cd4795ef9 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV1Async_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV1Async_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class CustomizeResponseExamples_NotFoundResponseWithHeaderV1Async_Generated
{
private readonly CustomizeResponseExamples customizeResponseExamples;
@@ -37,6 +44,7 @@ public CustomizeResponseExamples_NotFoundResponseWithHeaderV1Async_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task NotFoundResponseWithHeaderV1Async(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV1_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV1_Generated.g.cs
index ec4fc40f3..18bc5cf4b 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV1_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV1_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class CustomizeResponseExamples_NotFoundResponseWithHeaderV1_Generated
{
private readonly CustomizeResponseExamples customizeResponseExamples;
@@ -37,6 +44,7 @@ public CustomizeResponseExamples_NotFoundResponseWithHeaderV1_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public System.IO.Stream NotFoundResponseWithHeaderV1(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV2Async_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV2Async_Generated.g.cs
index dac48ee06..19f48c1dc 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV2Async_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV2Async_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class CustomizeResponseExamples_NotFoundResponseWithHeaderV2Async_Generated
{
private readonly CustomizeResponseExamples customizeResponseExamples;
@@ -37,6 +44,7 @@ public CustomizeResponseExamples_NotFoundResponseWithHeaderV2Async_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task NotFoundResponseWithHeaderV2Async(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV2_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV2_Generated.g.cs
index 5369f0ff8..d1657150d 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV2_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_NotFoundResponseWithHeaderV2_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class CustomizeResponseExamples_NotFoundResponseWithHeaderV2_Generated
{
private readonly CustomizeResponseExamples customizeResponseExamples;
@@ -37,6 +44,7 @@ public CustomizeResponseExamples_NotFoundResponseWithHeaderV2_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public System.IO.Stream NotFoundResponseWithHeaderV2(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_OkResponseWithCustomSerializer_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_OkResponseWithCustomSerializer_Generated.g.cs
index cedfd4b7e..7cddb3b7d 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_OkResponseWithCustomSerializer_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_OkResponseWithCustomSerializer_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class CustomizeResponseExamples_OkResponseWithCustomSerializer_Generated
{
private readonly CustomizeResponseExamples customizeResponseExamples;
@@ -37,6 +44,7 @@ public CustomizeResponseExamples_OkResponseWithCustomSerializer_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task OkResponseWithCustomSerializer(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_OkResponseWithHeaderAsync_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_OkResponseWithHeaderAsync_Generated.g.cs
index 6c96a6913..3b9313239 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_OkResponseWithHeaderAsync_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_OkResponseWithHeaderAsync_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class CustomizeResponseExamples_OkResponseWithHeaderAsync_Generated
{
private readonly CustomizeResponseExamples customizeResponseExamples;
@@ -37,6 +44,7 @@ public CustomizeResponseExamples_OkResponseWithHeaderAsync_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task OkResponseWithHeaderAsync(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_OkResponseWithHeader_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_OkResponseWithHeader_Generated.g.cs
index 76197784e..15102a34f 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_OkResponseWithHeader_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/CustomizeResponseExamples_OkResponseWithHeader_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class CustomizeResponseExamples_OkResponseWithHeader_Generated
{
private readonly CustomizeResponseExamples customizeResponseExamples;
@@ -37,6 +44,7 @@ public CustomizeResponseExamples_OkResponseWithHeader_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public System.IO.Stream OkResponseWithHeader(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DurableExecution/ProgramDurableExecution.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DurableExecution/ProgramDurableExecution.g.cs
index 7eca0535f..148e01256 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DurableExecution/ProgramDurableExecution.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DurableExecution/ProgramDurableExecution.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -10,11 +15,14 @@
namespace TestServerlessApp.DurableExecutionExamples;
+[global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class GeneratedProgram
{
///
/// This is responsible for inspecting the 'ANNOTATIONS_HANDLER' environment variable and invoking the appropriate Lambda function handler.
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public static async Task Main(string[] args)
{
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DurableExecution/ValidDurableExecution_ProcessOrder_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DurableExecution/ValidDurableExecution_ProcessOrder_Generated.g.cs
index 24a62d96e..7c8126232 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DurableExecution/ValidDurableExecution_ProcessOrder_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DurableExecution/ValidDurableExecution_ProcessOrder_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp.DurableExecutionExamples
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ValidDurableExecution_ProcessOrder_Generated
{
private readonly ValidDurableExecution validDurableExecution;
@@ -37,6 +44,7 @@ public ValidDurableExecution_ProcessOrder_Generated()
/// The durable execution service envelope that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task ProcessOrder(Amazon.Lambda.DurableExecution.DurableExecutionInvocationInput __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
return await Amazon.Lambda.DurableExecution.DurableFunction.WrapAsync(validDurableExecution.ProcessOrder, __request__, __context__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamicExample_DynamicInput_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamicExample_DynamicInput_Generated.g.cs
index bba8b6c39..ccdce89bf 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamicExample_DynamicInput_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamicExample_DynamicInput_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class DynamicExample_DynamicInput_Generated
{
private readonly DynamicExample dynamicExample;
@@ -36,6 +43,7 @@ public DynamicExample_DynamicInput_Generated()
/// The request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public string DynamicInput(dynamic __text__, Amazon.Lambda.Core.ILambdaContext __context__)
{
return dynamicExample.DynamicInput(__text__, __context__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamicExample_DynamicReturn_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamicExample_DynamicReturn_Generated.g.cs
index 2116cef30..8252a4b14 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamicExample_DynamicReturn_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamicExample_DynamicReturn_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class DynamicExample_DynamicReturn_Generated
{
private readonly DynamicExample dynamicExample;
@@ -36,6 +43,7 @@ public DynamicExample_DynamicReturn_Generated()
/// The request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public dynamic DynamicReturn(string __text__, Amazon.Lambda.Core.ILambdaContext __context__)
{
return dynamicExample.DynamicReturn(__text__, __context__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamoDB/ValidDynamoDBEvents_ProcessMessagesAsync_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamoDB/ValidDynamoDBEvents_ProcessMessagesAsync_Generated.g.cs
index b8819fe3f..d045c8451 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamoDB/ValidDynamoDBEvents_ProcessMessagesAsync_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamoDB/ValidDynamoDBEvents_ProcessMessagesAsync_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp.DynamoDBEventExamples
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ValidDynamoDBEvents_ProcessMessagesAsync_Generated
{
private readonly ValidDynamoDBEvents validDynamoDBEvents;
@@ -35,6 +42,7 @@ public ValidDynamoDBEvents_ProcessMessagesAsync_Generated()
///
/// The request object that will be processed by the Lambda function handler.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task ProcessMessagesAsync(Amazon.Lambda.DynamoDBEvents.DynamoDBEvent __evnt__)
{
await validDynamoDBEvents.ProcessMessagesAsync(__evnt__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamoDB/ValidDynamoDBEvents_ProcessMessages_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamoDB/ValidDynamoDBEvents_ProcessMessages_Generated.g.cs
index 017972e21..a32d41259 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamoDB/ValidDynamoDBEvents_ProcessMessages_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/DynamoDB/ValidDynamoDBEvents_ProcessMessages_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp.DynamoDBEventExamples
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ValidDynamoDBEvents_ProcessMessages_Generated
{
private readonly ValidDynamoDBEvents validDynamoDBEvents;
@@ -35,6 +42,7 @@ public ValidDynamoDBEvents_ProcessMessages_Generated()
///
/// The request object that will be processed by the Lambda function handler.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public void ProcessMessages(Amazon.Lambda.DynamoDBEvents.DynamoDBEvent __evnt__)
{
validDynamoDBEvents.ProcessMessages(__evnt__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/FunctionUrlExample_GetItems_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/FunctionUrlExample_GetItems_Generated.g.cs
index bea920d48..5bd054e58 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/FunctionUrlExample_GetItems_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/FunctionUrlExample_GetItems_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class FunctionUrlExample_GetItems_Generated
{
private readonly FunctionUrlExample functionUrlExample;
@@ -37,6 +44,7 @@ public FunctionUrlExample_GetItems_Generated()
/// The Function URL request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public System.IO.Stream GetItems(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_AsyncStartupToLower_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_AsyncStartupToLower_Generated.g.cs
index 63f65d269..fbc0ee1fc 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_AsyncStartupToLower_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_AsyncStartupToLower_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp.Sub1
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class FunctionsZipOutput_ToLower_Generated
{
private readonly ServiceProvider serviceProvider;
@@ -47,6 +54,7 @@ public FunctionsZipOutput_ToLower_Generated()
///
/// The request object that will be processed by the Lambda function handler.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public string ToLower(string __text__)
{
// Create a scope for every request,
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_AsyncStartupToUpper_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_AsyncStartupToUpper_Generated.g.cs
index fe23894f4..5b7d812f2 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_AsyncStartupToUpper_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_AsyncStartupToUpper_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp.Sub1
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class Functions_ToUpper_Generated
{
private readonly ServiceProvider serviceProvider;
@@ -47,6 +54,7 @@ public Functions_ToUpper_Generated()
///
/// The request object that will be processed by the Lambda function handler.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public string ToUpper(string __text__)
{
// Create a scope for every request,
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_ToUpper_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_ToUpper_Generated.g.cs
index 887877156..573865bd0 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_ToUpper_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_ToUpper_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp.Sub1
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class Functions_ToUpper_Generated
{
private readonly Functions functions;
@@ -35,6 +42,7 @@ public Functions_ToUpper_Generated()
///
/// The request object that will be processed by the Lambda function handler.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public string ToUpper(string __text__)
{
return functions.ToUpper(__text__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_ToUpper_Generated_NET8.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_ToUpper_Generated_NET8.g.cs
index 36bfe4a56..eca07f6c4 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_ToUpper_Generated_NET8.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Functions_ToUpper_Generated_NET8.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp.NET8
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class Functions_ToUpper_Generated
{
private readonly Functions functions;
@@ -35,6 +42,7 @@ public Functions_ToUpper_Generated()
///
/// The request object that will be processed by the Lambda function handler.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public string ToUpper(string __text__)
{
return functions.ToUpper(__text__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/GreeterExecutable_SayHelloAsync_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/GreeterExecutable_SayHelloAsync_Generated.g.cs
index d4a9d4f89..66f0c78c8 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/GreeterExecutable_SayHelloAsync_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/GreeterExecutable_SayHelloAsync_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class Greeter_SayHelloAsync_Generated
{
private readonly ServiceProvider serviceProvider;
@@ -48,6 +55,7 @@ public Greeter_SayHelloAsync_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task SayHelloAsync(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
// Create a scope for every request,
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/GreeterExecutable_SayHello_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/GreeterExecutable_SayHello_Generated.g.cs
index ae7a7b4e3..f703ead3a 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/GreeterExecutable_SayHello_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/GreeterExecutable_SayHello_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class Greeter_SayHello_Generated
{
private readonly ServiceProvider serviceProvider;
@@ -48,6 +55,7 @@ public Greeter_SayHello_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayProxyResponse SayHello(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
// Create a scope for every request,
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Greeter_SayHelloAsync_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Greeter_SayHelloAsync_Generated.g.cs
index fef0cad2e..041578e25 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Greeter_SayHelloAsync_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Greeter_SayHelloAsync_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class Greeter_SayHelloAsync_Generated
{
private readonly Greeter greeter;
@@ -36,6 +43,7 @@ public Greeter_SayHelloAsync_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task SayHelloAsync(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Greeter_SayHello_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Greeter_SayHello_Generated.g.cs
index 6cca2d1c5..53aacb070 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Greeter_SayHello_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Greeter_SayHello_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class Greeter_SayHello_Generated
{
private readonly Greeter greeter;
@@ -36,6 +43,7 @@ public Greeter_SayHello_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayProxyResponse SayHello(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/HostBuilderFunctions_Add_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/HostBuilderFunctions_Add_Generated.g.cs
index 9d79f4ad2..5d307ec32 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/HostBuilderFunctions_Add_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/HostBuilderFunctions_Add_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -15,6 +20,8 @@ namespace TestHostBuilderApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class HostBuilderFunctions_Add_Generated
{
private readonly ServiceProvider serviceProvider;
@@ -52,6 +59,7 @@ public HostBuilderFunctions_Add_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyResponse Add(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
// Create a scope for every request,
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/IAuthorizerResultExample_SimpleHttpApiAuthorizer_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/IAuthorizerResultExample_SimpleHttpApiAuthorizer_Generated.g.cs
index 71ff3effa..76027c6d8 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/IAuthorizerResultExample_SimpleHttpApiAuthorizer_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/IAuthorizerResultExample_SimpleHttpApiAuthorizer_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class IAuthorizerResultExample_SimpleHttpApiAuthorizer_Generated
{
private readonly IAuthorizerResultExample iAuthorizerResultExample;
@@ -37,6 +44,7 @@ public IAuthorizerResultExample_SimpleHttpApiAuthorizer_Generated()
/// The API Gateway authorizer request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public System.IO.Stream SimpleHttpApiAuthorizer(Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerV2Request __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var __bindingFailed__ = false;
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/IAuthorizerResultExample_SimpleRestApiAuthorizer_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/IAuthorizerResultExample_SimpleRestApiAuthorizer_Generated.g.cs
index c514d6538..2e65ffa24 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/IAuthorizerResultExample_SimpleRestApiAuthorizer_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/IAuthorizerResultExample_SimpleRestApiAuthorizer_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class IAuthorizerResultExample_SimpleRestApiAuthorizer_Generated
{
private readonly IAuthorizerResultExample iAuthorizerResultExample;
@@ -37,6 +44,7 @@ public IAuthorizerResultExample_SimpleRestApiAuthorizer_Generated()
/// The API Gateway authorizer request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public System.IO.Stream SimpleRestApiAuthorizer(Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var __bindingFailed__ = false;
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/IntrinsicExample_HasIntrinsic_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/IntrinsicExample_HasIntrinsic_Generated.g.cs
index 94033ce7b..f7f452c03 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/IntrinsicExample_HasIntrinsic_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/IntrinsicExample_HasIntrinsic_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class IntrinsicExample_HasIntrinsic_Generated
{
private readonly IntrinsicExample intrinsicExample;
@@ -36,6 +43,7 @@ public IntrinsicExample_HasIntrinsic_Generated()
/// The request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public void HasIntrinsic(string __text__, Amazon.Lambda.Core.ILambdaContext __context__)
{
intrinsicExample.HasIntrinsic(__text__, __context__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/NullableReferenceTypeExample_NullableHeaderHttpApi_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/NullableReferenceTypeExample_NullableHeaderHttpApi_Generated.g.cs
index f77127600..410a55cf5 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/NullableReferenceTypeExample_NullableHeaderHttpApi_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/NullableReferenceTypeExample_NullableHeaderHttpApi_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class NullableReferenceTypeExample_NullableHeaderHttpApi_Generated
{
private readonly NullableReferenceTypeExample nullableReferenceTypeExample;
@@ -36,6 +43,7 @@ public NullableReferenceTypeExample_NullableHeaderHttpApi_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyResponse NullableHeaderHttpApi(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ParameterlessMethodWithResponse_ToUpper_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ParameterlessMethodWithResponse_ToUpper_Generated.g.cs
index f4c45da0c..49ce1ad3d 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ParameterlessMethodWithResponse_ToUpper_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ParameterlessMethodWithResponse_ToUpper_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ParameterlessMethodWithResponse_NoParameterWithResponse_Generated
{
private readonly ParameterlessMethodWithResponse parameterlessMethodWithResponse;
@@ -34,6 +41,7 @@ public ParameterlessMethodWithResponse_NoParameterWithResponse_Generated()
/// The generated Lambda function handler for
///
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public string NoParameterWithResponse(Stream stream)
{
return parameterlessMethodWithResponse.NoParameterWithResponse();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ParameterlessMethods_ToUpper_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ParameterlessMethods_ToUpper_Generated.g.cs
index 30565f5eb..2a7276458 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ParameterlessMethods_ToUpper_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ParameterlessMethods_ToUpper_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ParameterlessMethods_NoParameter_Generated
{
private readonly ParameterlessMethods parameterlessMethods;
@@ -34,6 +41,7 @@ public ParameterlessMethods_NoParameter_Generated()
/// The generated Lambda function handler for
///
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public void NoParameter(Stream stream)
{
parameterlessMethods.NoParameter();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ParameterlessTaskMethods_NoParameterTask_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ParameterlessTaskMethods_NoParameterTask_Generated.g.cs
index b08b691b1..3995f75ad 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ParameterlessTaskMethods_NoParameterTask_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ParameterlessTaskMethods_NoParameterTask_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ParameterlessTaskMethods_NoParameterTask_Generated
{
private readonly ParameterlessTaskMethods parameterlessTaskMethods;
@@ -34,6 +41,7 @@ public ParameterlessTaskMethods_NoParameterTask_Generated()
/// The generated Lambda function handler for
///
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task NoParameterTask(Stream stream)
{
await parameterlessTaskMethods.NoParameterTask();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Program.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Program.g.cs
index 58299b050..31e9f6164 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Program.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Program.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -10,11 +15,14 @@
namespace TestServerlessApp.Sub1;
+[global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class GeneratedProgram
{
///
/// This is responsible for inspecting the 'ANNOTATIONS_HANDLER' environment variable and invoking the appropriate Lambda function handler.
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public static async Task Main(string[] args)
{
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramMultiHandler.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramMultiHandler.g.cs
index 909f9c604..a03734203 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramMultiHandler.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramMultiHandler.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -10,11 +15,14 @@
namespace TestServerlessApp;
+[global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class GeneratedProgram
{
///
/// This is responsible for inspecting the 'ANNOTATIONS_HANDLER' environment variable and invoking the appropriate Lambda function handler.
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public static async Task Main(string[] args)
{
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramParameterless.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramParameterless.g.cs
index 39d79eca7..9a4052552 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramParameterless.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramParameterless.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -10,11 +15,14 @@
namespace TestServerlessApp;
+[global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class GeneratedProgram
{
///
/// This is responsible for inspecting the 'ANNOTATIONS_HANDLER' environment variable and invoking the appropriate Lambda function handler.
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public static async Task Main(string[] args)
{
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramParameterlessTask.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramParameterlessTask.g.cs
index 2eec52323..02d6d7927 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramParameterlessTask.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramParameterlessTask.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -10,11 +15,14 @@
namespace TestServerlessApp;
+[global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class GeneratedProgram
{
///
/// This is responsible for inspecting the 'ANNOTATIONS_HANDLER' environment variable and invoking the appropriate Lambda function handler.
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public static async Task Main(string[] args)
{
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramParameterlessWithResponse.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramParameterlessWithResponse.g.cs
index f9077a6d9..9565f5e13 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramParameterlessWithResponse.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramParameterlessWithResponse.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -10,11 +15,14 @@
namespace TestServerlessApp;
+[global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class GeneratedProgram
{
///
/// This is responsible for inspecting the 'ANNOTATIONS_HANDLER' environment variable and invoking the appropriate Lambda function handler.
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public static async Task Main(string[] args)
{
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramSourceGeneratorSerializationExample.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramSourceGeneratorSerializationExample.g.cs
index 3bb638a28..d891c97e3 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramSourceGeneratorSerializationExample.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramSourceGeneratorSerializationExample.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -10,11 +15,14 @@
namespace TestExecutableServerlessApp;
+[global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class GeneratedProgram
{
///
/// This is responsible for inspecting the 'ANNOTATIONS_HANDLER' environment variable and invoking the appropriate Lambda function handler.
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public static async Task Main(string[] args)
{
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramZipOutput.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramZipOutput.g.cs
index 2518a7ce8..34e34e0cb 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramZipOutput.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProgramZipOutput.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -10,11 +15,14 @@
namespace TestServerlessApp.Sub1;
+[global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class GeneratedProgram
{
///
/// This is responsible for inspecting the 'ANNOTATIONS_HANDLER' environment variable and invoking the appropriate Lambda function handler.
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public static async Task Main(string[] args)
{
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetHttpApiV1UserInfo_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetHttpApiV1UserInfo_Generated.g.cs
index c518cbb3c..026070de4 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetHttpApiV1UserInfo_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetHttpApiV1UserInfo_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestCustomAuthorizerApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ProtectedFunction_GetHttpApiV1UserInfo_Generated
{
private readonly ProtectedFunction protectedFunction;
@@ -36,6 +43,7 @@ public ProtectedFunction_GetHttpApiV1UserInfo_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayProxyResponse GetHttpApiV1UserInfo(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetIHttpResult_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetIHttpResult_Generated.g.cs
index 02eedb0ce..20d86947f 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetIHttpResult_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetIHttpResult_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestCustomAuthorizerApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ProtectedFunction_GetIHttpResult_Generated
{
private readonly ProtectedFunction protectedFunction;
@@ -37,6 +44,7 @@ public ProtectedFunction_GetIHttpResult_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public System.IO.Stream GetIHttpResult(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetNonStringUserInfo_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetNonStringUserInfo_Generated.g.cs
index b34093dd2..79897eab3 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetNonStringUserInfo_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetNonStringUserInfo_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestCustomAuthorizerApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ProtectedFunction_GetNonStringUserInfo_Generated
{
private readonly ProtectedFunction protectedFunction;
@@ -36,6 +43,7 @@ public ProtectedFunction_GetNonStringUserInfo_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyResponse GetNonStringUserInfo(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetProtectedData_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetProtectedData_Generated.g.cs
index 295bb69c2..91e6f7630 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetProtectedData_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetProtectedData_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestCustomAuthorizerApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ProtectedFunction_GetProtectedData_Generated
{
private readonly ProtectedFunction protectedFunction;
@@ -36,6 +43,7 @@ public ProtectedFunction_GetProtectedData_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyResponse GetProtectedData(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var response = protectedFunction.GetProtectedData(__request__, __context__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetRestUserInfo_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetRestUserInfo_Generated.g.cs
index fc8425520..58b9fd3e3 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetRestUserInfo_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetRestUserInfo_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestCustomAuthorizerApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ProtectedFunction_GetRestUserInfo_Generated
{
private readonly ProtectedFunction protectedFunction;
@@ -36,6 +43,7 @@ public ProtectedFunction_GetRestUserInfo_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayProxyResponse GetRestUserInfo(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetSimpleHttpApiUserInfo_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetSimpleHttpApiUserInfo_Generated.g.cs
index 533dfefe0..74858f123 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetSimpleHttpApiUserInfo_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetSimpleHttpApiUserInfo_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestCustomAuthorizerApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ProtectedFunction_GetSimpleHttpApiUserInfo_Generated
{
private readonly ProtectedFunction protectedFunction;
@@ -36,6 +43,7 @@ public ProtectedFunction_GetSimpleHttpApiUserInfo_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyResponse GetSimpleHttpApiUserInfo(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetSimpleRestApiUserInfo_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetSimpleRestApiUserInfo_Generated.g.cs
index 7f1290302..ae0400281 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetSimpleRestApiUserInfo_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetSimpleRestApiUserInfo_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestCustomAuthorizerApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ProtectedFunction_GetSimpleRestApiUserInfo_Generated
{
private readonly ProtectedFunction protectedFunction;
@@ -36,6 +43,7 @@ public ProtectedFunction_GetSimpleRestApiUserInfo_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayProxyResponse GetSimpleRestApiUserInfo(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetUserInfo_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetUserInfo_Generated.g.cs
index e35f978f2..a3a5ec14b 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetUserInfo_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_GetUserInfo_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestCustomAuthorizerApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ProtectedFunction_GetUserInfo_Generated
{
private readonly ProtectedFunction protectedFunction;
@@ -36,6 +43,7 @@ public ProtectedFunction_GetUserInfo_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyResponse GetUserInfo(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var validationErrors = new List();
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_HealthCheck_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_HealthCheck_Generated.g.cs
index 1d51a2f92..2dd485eed 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_HealthCheck_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/ProtectedFunction_HealthCheck_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestCustomAuthorizerApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ProtectedFunction_HealthCheck_Generated
{
private readonly ProtectedFunction protectedFunction;
@@ -36,6 +43,7 @@ public ProtectedFunction_HealthCheck_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyResponse HealthCheck(Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var response = protectedFunction.HealthCheck(__context__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SNS/ValidSNSEvents_ProcessMessagesAsync_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SNS/ValidSNSEvents_ProcessMessagesAsync_Generated.g.cs
index 4eedbb686..d200398ae 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SNS/ValidSNSEvents_ProcessMessagesAsync_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SNS/ValidSNSEvents_ProcessMessagesAsync_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp.SNSEventExamples
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ValidSNSEvents_ProcessMessagesAsync_Generated
{
private readonly ValidSNSEvents validSNSEvents;
@@ -35,6 +42,7 @@ public ValidSNSEvents_ProcessMessagesAsync_Generated()
///
/// The request object that will be processed by the Lambda function handler.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task ProcessMessagesAsync(Amazon.Lambda.SNSEvents.SNSEvent __evnt__)
{
await validSNSEvents.ProcessMessagesAsync(__evnt__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SNS/ValidSNSEvents_ProcessMessages_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SNS/ValidSNSEvents_ProcessMessages_Generated.g.cs
index 4d0babaab..bd31393c6 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SNS/ValidSNSEvents_ProcessMessages_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SNS/ValidSNSEvents_ProcessMessages_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp.SNSEventExamples
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ValidSNSEvents_ProcessMessages_Generated
{
private readonly ValidSNSEvents validSNSEvents;
@@ -35,6 +42,7 @@ public ValidSNSEvents_ProcessMessages_Generated()
///
/// The request object that will be processed by the Lambda function handler.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public void ProcessMessages(Amazon.Lambda.SNSEvents.SNSEvent __evnt__)
{
validSNSEvents.ProcessMessages(__evnt__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SQS/ValidSQSEvents_ProcessMessagesWithBatchFailureReporting_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SQS/ValidSQSEvents_ProcessMessagesWithBatchFailureReporting_Generated.g.cs
index 93cd05e48..a53ee9897 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SQS/ValidSQSEvents_ProcessMessagesWithBatchFailureReporting_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SQS/ValidSQSEvents_ProcessMessagesWithBatchFailureReporting_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp.SQSEventExamples
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ValidSQSEvents_ProcessMessagesWithBatchFailureReporting_Generated
{
private readonly ValidSQSEvents validSQSEvents;
@@ -35,6 +42,7 @@ public ValidSQSEvents_ProcessMessagesWithBatchFailureReporting_Generated()
///
/// The request object that will be processed by the Lambda function handler.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task ProcessMessagesWithBatchFailureReporting(Amazon.Lambda.SQSEvents.SQSEvent __evnt__)
{
return await validSQSEvents.ProcessMessagesWithBatchFailureReporting(__evnt__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SQS/ValidSQSEvents_ProcessMessagesWithReservedParameterName_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SQS/ValidSQSEvents_ProcessMessagesWithReservedParameterName_Generated.g.cs
index beb391c57..c2b8f4dcd 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SQS/ValidSQSEvents_ProcessMessagesWithReservedParameterName_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SQS/ValidSQSEvents_ProcessMessagesWithReservedParameterName_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp.SQSEventExamples
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ValidSQSEvents_ProcessMessagesWithReservedParameterName_Generated
{
private readonly ValidSQSEvents validSQSEvents;
@@ -35,6 +42,7 @@ public ValidSQSEvents_ProcessMessagesWithReservedParameterName_Generated()
///
/// The request object that will be processed by the Lambda function handler.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public void ProcessMessagesWithReservedParameterName(Amazon.Lambda.SQSEvents.SQSEvent __event__)
{
validSQSEvents.ProcessMessagesWithReservedParameterName(__event__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SQS/ValidSQSEvents_ProcessMessages_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SQS/ValidSQSEvents_ProcessMessages_Generated.g.cs
index f1572110b..e432eefff 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SQS/ValidSQSEvents_ProcessMessages_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SQS/ValidSQSEvents_ProcessMessages_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp.SQSEventExamples
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ValidSQSEvents_ProcessMessages_Generated
{
private readonly ValidSQSEvents validSQSEvents;
@@ -35,6 +42,7 @@ public ValidSQSEvents_ProcessMessages_Generated()
///
/// The request object that will be processed by the Lambda function handler.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public void ProcessMessages(Amazon.Lambda.SQSEvents.SQSEvent __evnt__)
{
validSQSEvents.ProcessMessages(__evnt__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Schedule/ValidScheduleEvents_ProcessScheduledEventAsync_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Schedule/ValidScheduleEvents_ProcessScheduledEventAsync_Generated.g.cs
index 0ae6cb59d..8b380a656 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Schedule/ValidScheduleEvents_ProcessScheduledEventAsync_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Schedule/ValidScheduleEvents_ProcessScheduledEventAsync_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp.ScheduleEventExamples
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ValidScheduleEvents_ProcessScheduledEventAsync_Generated
{
private readonly ValidScheduleEvents validScheduleEvents;
@@ -35,6 +42,7 @@ public ValidScheduleEvents_ProcessScheduledEventAsync_Generated()
///
/// The request object that will be processed by the Lambda function handler.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task ProcessScheduledEventAsync(Amazon.Lambda.CloudWatchEvents.ScheduledEvents.ScheduledEvent __evnt__)
{
await validScheduleEvents.ProcessScheduledEventAsync(__evnt__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Schedule/ValidScheduleEvents_ProcessScheduledEvent_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Schedule/ValidScheduleEvents_ProcessScheduledEvent_Generated.g.cs
index b3a0eae4f..a72798ca5 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Schedule/ValidScheduleEvents_ProcessScheduledEvent_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/Schedule/ValidScheduleEvents_ProcessScheduledEvent_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp.ScheduleEventExamples
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class ValidScheduleEvents_ProcessScheduledEvent_Generated
{
private readonly ValidScheduleEvents validScheduleEvents;
@@ -35,6 +42,7 @@ public ValidScheduleEvents_ProcessScheduledEvent_Generated()
///
/// The request object that will be processed by the Lambda function handler.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public void ProcessScheduledEvent(Amazon.Lambda.CloudWatchEvents.ScheduledEvents.ScheduledEvent __evnt__)
{
validScheduleEvents.ProcessScheduledEvent(__evnt__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Add_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Add_Generated.g.cs
index 4b456256d..27401dfc2 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Add_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Add_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class SimpleCalculator_Add_Generated
{
private readonly ServiceProvider serviceProvider;
@@ -48,6 +55,7 @@ public SimpleCalculator_Add_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayProxyResponse Add(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
// Create a scope for every request,
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_DivideAsync_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_DivideAsync_Generated.g.cs
index a61ad4216..a9cfe42ef 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_DivideAsync_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_DivideAsync_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class SimpleCalculator_DivideAsync_Generated
{
private readonly ServiceProvider serviceProvider;
@@ -48,6 +55,7 @@ public SimpleCalculator_DivideAsync_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task DivideAsync(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
// Create a scope for every request,
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Multiply_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Multiply_Generated.g.cs
index 9e3cbab29..b0b1db887 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Multiply_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Multiply_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class SimpleCalculator_Multiply_Generated
{
private readonly ServiceProvider serviceProvider;
@@ -48,6 +55,7 @@ public SimpleCalculator_Multiply_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayProxyResponse Multiply(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
// Create a scope for every request,
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Pi_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Pi_Generated.g.cs
index c16b4ceb2..a22639d07 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Pi_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Pi_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class SimpleCalculator_Pi_Generated
{
private readonly ServiceProvider serviceProvider;
@@ -46,6 +53,7 @@ public SimpleCalculator_Pi_Generated()
/// The generated Lambda function handler for
///
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public double Pi(Stream stream)
{
// Create a scope for every request,
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Random_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Random_Generated.g.cs
index 0ba7fc780..7da7fe311 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Random_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Random_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class SimpleCalculator_Random_Generated
{
private readonly ServiceProvider serviceProvider;
@@ -48,6 +55,7 @@ public SimpleCalculator_Random_Generated()
/// The request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task Random(int __maxValue__, Amazon.Lambda.Core.ILambdaContext __context__)
{
// Create a scope for every request,
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Randoms_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Randoms_Generated.g.cs
index eca1f607a..ee4ea536d 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Randoms_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Randoms_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class SimpleCalculator_Randoms_Generated
{
private readonly ServiceProvider serviceProvider;
@@ -48,6 +55,7 @@ public SimpleCalculator_Randoms_Generated()
/// The request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public System.Collections.Generic.IList Randoms(TestServerlessApp.SimpleCalculator.RandomsInput __input__, Amazon.Lambda.Core.ILambdaContext __context__)
{
// Create a scope for every request,
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Subtract_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Subtract_Generated.g.cs
index 0c9429d01..d0ce0a989 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Subtract_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SimpleCalculator_Subtract_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class SimpleCalculator_Subtract_Generated
{
private readonly ServiceProvider serviceProvider;
@@ -48,6 +55,7 @@ public SimpleCalculator_Subtract_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public Amazon.Lambda.APIGatewayEvents.APIGatewayProxyResponse Subtract(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
// Create a scope for every request,
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SourceGenerationSerializationExample_GetPerson_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SourceGenerationSerializationExample_GetPerson_Generated.g.cs
index 77dbaeeba..e1c972dd6 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SourceGenerationSerializationExample_GetPerson_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/SourceGenerationSerializationExample_GetPerson_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -14,6 +19,8 @@ namespace TestExecutableServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class SourceGenerationSerializationExample_GetPerson_Generated
{
private readonly SourceGenerationSerializationExample sourceGenerationSerializationExample;
@@ -37,6 +44,7 @@ public SourceGenerationSerializationExample_GetPerson_Generated()
/// The API Gateway request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public System.IO.Stream GetPerson(Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest __request__, Amazon.Lambda.Core.ILambdaContext __context__)
{
var httpResults = sourceGenerationSerializationExample.GetPerson(__context__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/TaskExample_TaskReturn_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/TaskExample_TaskReturn_Generated.g.cs
index b77dbd0e9..07c09084b 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/TaskExample_TaskReturn_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/TaskExample_TaskReturn_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class TaskExample_TaskReturn_Generated
{
private readonly TaskExample taskExample;
@@ -36,6 +43,7 @@ public TaskExample_TaskReturn_Generated()
/// The request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public async System.Threading.Tasks.Task TaskReturn(string __text__, Amazon.Lambda.Core.ILambdaContext __context__)
{
await taskExample.TaskReturn(__text__, __context__);
diff --git a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/VoidExample_VoidReturn_Generated.g.cs b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/VoidExample_VoidReturn_Generated.g.cs
index f63ea0447..bdb7f77f2 100644
--- a/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/VoidExample_VoidReturn_Generated.g.cs
+++ b/Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/Snapshots/VoidExample_VoidReturn_Generated.g.cs
@@ -1,4 +1,9 @@
-//
+//
+// This code was generated by Amazon.Lambda.Annotations.SourceGenerator {ANNOTATIONS_ASSEMBLY_VERSION}.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
using System;
using System.Linq;
@@ -13,6 +18,8 @@ namespace TestServerlessApp
///
/// The generated Lambda function handler for .
///
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public class VoidExample_VoidReturn_Generated
{
private readonly VoidExample voidExample;
@@ -36,6 +43,7 @@ public VoidExample_VoidReturn_Generated()
/// The request object that will be processed by the Lambda function handler.
/// The ILambdaContext that provides methods for logging and describing the Lambda environment.
/// Result of the Lambda function execution
+ [global::System.CodeDom.Compiler.GeneratedCode("Amazon.Lambda.Annotations.SourceGenerator", "{ANNOTATIONS_ASSEMBLY_VERSION}")]
public void VoidReturn(string __text__, Amazon.Lambda.Core.ILambdaContext __context__)
{
voidExample.VoidReturn(__text__, __context__);