Skip to content

Commit

Permalink
Merge pull request #3240 from tehbio/net-lambda-example
Browse files Browse the repository at this point in the history
Update .Net Lambda async doc example
  • Loading branch information
mmfred committed Jul 22, 2021
2 parents 5bd7994 + d7eaae1 commit 5d2dbde
Showing 1 changed file with 3 additions and 5 deletions.
Expand Up @@ -192,15 +192,13 @@ id="net-handler-returns-task-example"
title="Async handler function"
>
```
public override Task<int> FunctionHandlerAsync(ILambdaContext lambdaContext)
public async Task<int> FunctionHandlerAsync(ILambdaContext lambdaContext)
{
// This call will block by calling task.Result
Task<int> task = new TracingRequestHandler().LambdaWrapper(
return await new TracingRequestHandler().LambdaWrapper(
ActualFunctionHandlerAsync, lambdaContext);
return task;
}
public Task<APIGatewayProxyResponse> ActualFunctionHandlerAsync(ILambdaContext
public async Task<APIGatewayProxyResponse> ActualFunctionHandlerAsync(ILambdaContext
lambdaContext)
{ // Function can make other async operations here
...
Expand Down

0 comments on commit 5d2dbde

Please sign in to comment.