Skip to content

Commit

Permalink
Updated .Net Lambda doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
tehbio committed Jul 22, 2021
1 parent 5bd7994 commit d7eaae1
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 d7eaae1

Please sign in to comment.