feat: ajustes
This commit is contained in:
@@ -53,4 +53,4 @@ public class TransactionBehaviour<TRequest, TResponse> : IPipelineBehavior<TRequ
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,4 +12,4 @@ public static class ServicesCollectionExtensions
|
||||
serivces.AddScoped(typeof(IPipelineBehavior<,>), typeof(TransactionBehaviour<,>));
|
||||
return serivces;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,7 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.OpenApi.Models;
|
||||
using Shop.Core.Extensions;
|
||||
using Shop.Infrastructure;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
@@ -55,6 +56,8 @@ builder.Host.UseDefaultServiceProvider((context, options) =>
|
||||
options.ValidateOnBuild = true;
|
||||
});
|
||||
|
||||
builder.Services.AddInfrastructure();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Shop.Application\Shop.Application.csproj" />
|
||||
<ProjectReference Include="..\Shop.Infrastructure\Shop.Infrastructure.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user