feat: ajustes

This commit is contained in:
Jean Gatto
2022-06-07 22:03:08 -03:00
parent b427b056b0
commit 2708d23b8c
4 changed files with 6 additions and 2 deletions
@@ -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;
}
}
}
+3
View File
@@ -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.
+1
View File
@@ -13,6 +13,7 @@
<ItemGroup>
<ProjectReference Include="..\Shop.Application\Shop.Application.csproj" />
<ProjectReference Include="..\Shop.Infrastructure\Shop.Infrastructure.csproj" />
</ItemGroup>
</Project>