Skip to content

Commit 50eb239

Browse files
committed
refact: change namespace for better access
1 parent 989dbd0 commit 50eb239

File tree

12 files changed

+16
-16
lines changed

12 files changed

+16
-16
lines changed

Voxel.MiddyNet.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ApiGatewayProblemDetails",
7777
EndProject
7878
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Voxel.MiddyNet.ApiGatewayProblemDetails", "samples\ApiGatewayProblemDetails\Voxel.MiddyNet.ApiGatewayProblemDetails\Voxel.MiddyNet.ApiGatewayProblemDetails.csproj", "{615A99CC-A3ED-4E42-9A9A-AC29B13B095C}"
7979
EndProject
80-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Voxel.MiddyNet.HttpJsonBodyParserMiddleware.Tests", "test\Voxel.MiddyNet.HttpJsonBodyParserMiddleware.Tests\Voxel.MiddyNet.HttpJsonBodyParserMiddleware.Tests.csproj", "{AD9A0773-EF96-4F4A-890C-337277EDCC2F}"
80+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Voxel.MiddyNet.HttpJsonMiddleware.Tests", "test\Voxel.MiddyNet.HttpJsonMiddleware.Tests\Voxel.MiddyNet.HttpJsonMiddleware.Tests.csproj", "{AD9A0773-EF96-4F4A-890C-337277EDCC2F}"
8181
EndProject
82-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Voxel.MiddyNet.HttpJsonBodyParserMiddleware", "src\Voxel.MiddyNet.HttpJsonBodyParserMiddleware\Voxel.MiddyNet.HttpJsonBodyParserMiddleware.csproj", "{111CB170-E682-498D-9E84-42FFFB66CE36}"
82+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Voxel.MiddyNet.HttpJsonMiddleware", "src\Voxel.MiddyNet.HttpJsonMiddleware\Voxel.MiddyNet.HttpJsonMiddleware.csproj", "{111CB170-E682-498D-9E84-42FFFB66CE36}"
8383
EndProject
8484
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HttpJsonBodyParser", "HttpJsonBodyParser", "{2B9304CC-B4DD-4DD5-9428-F7D8A0BC39BC}"
8585
EndProject

samples/HttpJsonBodyParser/Voxel.MiddyNet.HttpJsonBodyParserSample/HttpJsonBodyParser.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Threading.Tasks;
22
using Amazon.Lambda.Core;
33
using Amazon.Lambda.APIGatewayEvents;
4-
using Voxel.MiddyNet.HttpJsonBodyParserMiddleware;
4+
using Voxel.MiddyNet.HttpJsonMiddleware;
55

66
[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer))]
77
namespace Voxel.MiddyNet.HttpJsonBodyParserSample
@@ -15,8 +15,8 @@ public HttpJsonBodyParser()
1515

1616
protected override Task<APIGatewayProxyResponse> Handle(APIGatewayProxyRequest lambdaEvent, MiddyNetContext context)
1717
{
18-
var person = ((Person) context.AdditionalContext[HttpJsonBodyParserMiddleware.HttpJsonBodyParserMiddleware.BodyContextKey]);
19-
context.Logger.Log(LogLevel.Info, "Function called", new LogProperty(HttpJsonBodyParserMiddleware.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 APIGatewayProxyResponse
2121
{
2222
StatusCode = 200,

samples/HttpJsonBodyParser/Voxel.MiddyNet.HttpJsonBodyParserSample/Voxel.MiddyNet.HttpJsonBodyParserSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</ItemGroup>
1515

1616
<ItemGroup>
17-
<ProjectReference Include="..\..\..\src\Voxel.MiddyNet.HttpJsonBodyParserMiddleware\Voxel.MiddyNet.HttpJsonBodyParserMiddleware.csproj" />
17+
<ProjectReference Include="..\..\..\src\Voxel.MiddyNet.HttpJsonMiddleware\Voxel.MiddyNet.HttpJsonMiddleware.csproj" />
1818
</ItemGroup>
1919

2020
</Project>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Threading.Tasks;
22
using Amazon.Lambda.Core;
33
using Amazon.Lambda.APIGatewayEvents;
4-
using Voxel.MiddyNet.HttpJsonBodyParserMiddleware;
4+
using Voxel.MiddyNet.HttpJsonMiddleware;
55

66
[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer))]
77
namespace Voxel.MiddyNet.HttpV2JsonBodyParserSample
@@ -15,8 +15,8 @@ public HttpV2JsonBodyParser()
1515

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

samples/HttpV2JsonBodyParser/Voxel.MiddyNet.HttpV2JsonBodyParserSample/Voxel.MiddyNet.HttpV2JsonBodyParserSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
</ItemGroup>
1515

1616
<ItemGroup>
17-
<ProjectReference Include="..\..\..\src\Voxel.MiddyNet.HttpJsonBodyParserMiddleware\Voxel.MiddyNet.HttpJsonBodyParserMiddleware.csproj" />
17+
<ProjectReference Include="..\..\..\src\Voxel.MiddyNet.HttpJsonMiddleware\Voxel.MiddyNet.HttpJsonMiddleware.csproj" />
1818
</ItemGroup>
1919
</Project>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Amazon.Lambda.APIGatewayEvents;
55
using System.Threading.Tasks;
66

7-
namespace Voxel.MiddyNet.HttpJsonBodyParserMiddleware
7+
namespace Voxel.MiddyNet.HttpJsonMiddleware
88
{
99
public abstract class HttpJsonBodyParserMiddleware
1010
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Amazon.Lambda.APIGatewayEvents;
55
using System.Threading.Tasks;
66

7-
namespace Voxel.MiddyNet.HttpJsonBodyParserMiddleware
7+
namespace Voxel.MiddyNet.HttpJsonMiddleware
88
{
99
public class HttpV2JsonBodyParserMiddleware<T> : HttpJsonBodyParserMiddleware, ILambdaMiddleware<APIGatewayHttpApiV2ProxyRequest, APIGatewayHttpApiV2ProxyResponse>
1010
{
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using NSubstitute;
1010
using Xunit;
1111

12-
namespace Voxel.MiddyNet.HttpJsonBodyParserMiddleware.Tests
12+
namespace Voxel.MiddyNet.HttpJsonMiddleware.Tests
1313
{
1414
public class HttpJsonBodyParserMiddlewareShould
1515
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using NSubstitute;
1010
using Xunit;
1111

12-
namespace Voxel.MiddyNet.HttpJsonBodyParserMiddleware.Tests
12+
namespace Voxel.MiddyNet.HttpJsonMiddleware.Tests
1313
{
1414
public class HttpV2JsonBodyParserMiddlewareShould
1515
{

0 commit comments

Comments
 (0)