chore: Tracing Fix async Task Handler exception #1177
Annotations
20 warnings
build:
libraries/src/AWS.Lambda.Powertools.BatchProcessing/BatchProcessorAttribute.cs#L283
'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicParameterlessConstructor' in call to 'System.Activator.CreateInstance(Type)'. The return value of method 'AWS.Lambda.Powertools.BatchProcessing.BatchProcessorAttribute.BatchProcessor.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
build:
libraries/src/AWS.Lambda.Powertools.BatchProcessing/BatchProcessorAttribute.cs#L294
'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicParameterlessConstructor' in call to 'System.Activator.CreateInstance(Type)'. The return value of method 'AWS.Lambda.Powertools.BatchProcessing.BatchProcessorAttribute.BatchProcessorProvider.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
build:
libraries/src/AWS.Lambda.Powertools.BatchProcessing/BatchProcessorAttribute.cs#L313
'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicParameterlessConstructor' in call to 'System.Activator.CreateInstance(Type)'. The return value of method 'AWS.Lambda.Powertools.BatchProcessing.BatchProcessorAttribute.RecordHandler.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
build:
libraries/src/AWS.Lambda.Powertools.BatchProcessing/BatchProcessorAttribute.cs#L324
'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicParameterlessConstructor' in call to 'System.Activator.CreateInstance(Type)'. The return value of method 'AWS.Lambda.Powertools.BatchProcessing.BatchProcessorAttribute.RecordHandlerProvider.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
build:
libraries/src/AWS.Lambda.Powertools.Common/Aspects/AspectEventArgs.cs#L33
Non-nullable property 'Instance' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
|
build:
libraries/src/AWS.Lambda.Powertools.Common/Aspects/AspectEventArgs.cs#L39
Non-nullable property 'Type' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
|
build:
libraries/src/AWS.Lambda.Powertools.Common/Aspects/AspectEventArgs.cs#L45
Non-nullable property 'Method' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
|
build:
libraries/src/AWS.Lambda.Powertools.Common/Aspects/AspectEventArgs.cs#L51
Non-nullable property 'Name' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
|
build:
libraries/src/AWS.Lambda.Powertools.Common/Aspects/AspectEventArgs.cs#L57
Non-nullable property 'Args' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
|
build:
libraries/src/AWS.Lambda.Powertools.Common/Aspects/AspectEventArgs.cs#L63
Non-nullable property 'ReturnType' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
|
build:
examples/Idempotency/src/HelloWorld/Function.cs#L86
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
build:
examples/Idempotency/src/HelloWorld/Function.cs#L86
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
build:
examples/Parameters/cfn/HelloWorld.Cfn/Function.cs#L80
'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)
|
build:
examples/Parameters/cfn/HelloWorld.Cfn/Function.cs#L81
Dereference of a possibly null reference.
|
build:
examples/Parameters/cfn/HelloWorld.Cfn/Function.cs#L90
Dereference of a possibly null reference.
|
build:
examples/ServerlessApi/test/LambdaPowertoolsAPI.Tests/ValuesControllerTests.cs#L43
Possible null reference argument for parameter 'request' in 'Task<APIGatewayProxyResponse> LambdaEntryPoint.FunctionHandlerAsync(APIGatewayProxyRequest request, ILambdaContext lambdaContext)'.
|
build:
examples/Parameters/cfn/HelloWorld.Cfn/Function.cs#L80
'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)
|
build:
examples/Parameters/cfn/HelloWorld.Cfn/Function.cs#L81
Dereference of a possibly null reference.
|
build:
examples/Parameters/cfn/HelloWorld.Cfn/Function.cs#L90
Dereference of a possibly null reference.
|
build:
examples/ServerlessApi/test/LambdaPowertoolsAPI.Tests/ValuesControllerTests.cs#L43
Possible null reference argument for parameter 'request' in 'Task<APIGatewayProxyResponse> LambdaEntryPoint.FunctionHandlerAsync(APIGatewayProxyRequest request, ILambdaContext lambdaContext)'.
|