Skip to content

Commit 5292571

Browse files
committed
refact: simplify namespace access
1 parent 50eb239 commit 5292571

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/HttpV2JsonBodyParser/Voxel.MiddyNet.HttpV2JsonBodyParserSample/HttpV2JsonBodyParser.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public HttpV2JsonBodyParser()
1515

1616
protected override Task<APIGatewayHttpApiV2ProxyResponse> Handle(APIGatewayHttpApiV2ProxyRequest lambdaEvent, MiddyNetContext context)
1717
{
18-
var person = ((Person)context.AdditionalContext[HttpJsonMiddleware.HttpJsonBodyParserMiddleware.BodyContextKey]);
19-
context.Logger.Log(LogLevel.Info, "Function called", new LogProperty(HttpJsonMiddleware.HttpJsonBodyParserMiddleware.BodyContextKey, person));
18+
var person = ((Person)context.AdditionalContext[HttpJsonBodyParserMiddleware.BodyContextKey]);
19+
context.Logger.Log(LogLevel.Info, "Function called", new LogProperty(HttpJsonBodyParserMiddleware.BodyContextKey, person));
2020
var result = new APIGatewayHttpApiV2ProxyResponse
2121
{
2222
StatusCode = 200,

0 commit comments

Comments
 (0)