Skip to content

Commit fb9b2d2

Browse files
committed
removed files & libs
1 parent c9fa1c5 commit fb9b2d2

File tree

7 files changed

+1
-224
lines changed

7 files changed

+1
-224
lines changed

samples/Customer/CustomerService.Application/V1/UseCases/Commands/CreateCustomer.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,13 @@
88
using CustomerService.Core.Specs;
99
using FluentValidation;
1010
using MediatR;
11-
using Microsoft.AspNetCore.Mvc;
1211
using N8T.Core.Domain;
1312
using N8T.Core.Repository;
14-
using N8T.Infrastructure.Endpoint;
1513

1614
namespace CustomerService.Application.V1.UseCases.Commands
1715
{
18-
public class CreateCustomer : BaseAsyncEndpoint.WithRequest<CreateCustomer.Command>.WithoutResponse
16+
public class CreateCustomer
1917
{
20-
[ApiVersion( "1.0" )]
21-
[HttpPost("/api/v{version:apiVersion}/customers")]
22-
public override async Task<ActionResult> HandleAsync(Command request, CancellationToken cancellationToken = new())
23-
{
24-
return Ok(await Mediator.Send(request, cancellationToken));
25-
}
26-
2718
public record Command : ICreateCommand<Command.CreateCustomerModel, CustomerDto>
2819
{
2920
public CreateCustomerModel Model { get; init; } = default!;

src/N8T.Infrastructure/Endpoint/BaseAsyncEndpoint.cs

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/N8T.Infrastructure/Helpers/HostHelper.cs

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/N8T.Infrastructure/Kestrel/Extensions.cs

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/N8T.Infrastructure/Linq/Extensions.cs

Lines changed: 0 additions & 64 deletions
This file was deleted.

src/N8T.Infrastructure/N8T.Infrastructure.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="6.0.0-preview.4.21253.7" />
2525
<PackageReference Include="Microsoft.IdentityModel.Logging" Version="6.11.1" />
2626
<PackageReference Include="Microsoft.Extensions.Configuration.KeyPerFile" Version="6.0.0-preview.4.21253.5" />
27-
<PackageReference Include="Microsoft.Tye.Extensions.Configuration" Version="0.7.0-alpha.21279.2" />
28-
<PackageReference Include="Ardalis.ApiEndpoints" Version="3.0.0" />
2927
<PackageReference Include="Dapr.AspNetCore" Version="1.2.0" />
3028
<PackageReference Include="FluentValidation" Version="10.2.3" />
3129
<PackageReference Include="MediatR" Version="9.0.0" />

src/N8T.Infrastructure/Tye/Extensions.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)