@@ -1,7 +1,7 @@
|
||||
using LiteCharms.Abstractions;
|
||||
using LiteCharms.Features.Email.Events;
|
||||
using LiteCharms.Models;
|
||||
using static LiteCharms.Abstractions.Constants;
|
||||
using LiteCharms.Features.Email.Events;
|
||||
using LiteCharms.Features.Email.Models;
|
||||
using LiteCharms.Features.ServiceBus.Abstractions;
|
||||
using static LiteCharms.Features.ServiceBus.Constants;
|
||||
|
||||
namespace Shop.Components.Pages;
|
||||
|
||||
|
||||
+8
-4
@@ -1,6 +1,6 @@
|
||||
using LiteCharms.Extensions;
|
||||
using LiteCharms.Features.Extensions;
|
||||
using Shop.Components;
|
||||
using static LiteCharms.Abstractions.Constants;
|
||||
using static LiteCharms.Features.Email.Extensions.Constants;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
@@ -15,11 +15,15 @@ builder.Services.AddEndpointsApiExplorer();
|
||||
|
||||
builder.Services.AddMediator();
|
||||
builder.Services.AddSalesServiceBus();
|
||||
builder.Services.AddEmailServiceBus();
|
||||
builder.Services.AddGeneralServiceBus();
|
||||
builder.Services.AddShopDatabase(builder.Configuration);
|
||||
builder.Services.AddQuartzSchedulerClient(ShopSchedulerName, builder.Configuration);
|
||||
|
||||
builder.Services.AddEmailServices(builder.Configuration);
|
||||
builder.Services.AddEmailServiceBus();
|
||||
|
||||
builder.Services.AddShopServices();
|
||||
builder.Services.AddShopDatabase(builder.Configuration);
|
||||
|
||||
builder.Services.AddPostgresHealtchCheck();
|
||||
builder.Services.AddQuartzHealtchCheck();
|
||||
builder.Services.AddHealthChecksSupport(builder.Configuration);
|
||||
|
||||
+1
-3
@@ -17,9 +17,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="LiteCharms.Extensions" Version="1.20.0" />
|
||||
<PackageReference Include="LiteCharms.Features" Version="1.20.0" />
|
||||
<PackageReference Include="LiteCharms.Models" Version="1.20.0" />
|
||||
<PackageReference Include="LiteCharms.Features" Version="1.25.0" />
|
||||
<PackageReference Include="Polly" Version="8.6.6" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
"Microsoft.AspNetCore": "Warning",
|
||||
"Microsoft.EntityFrameworkCore": "Error"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
|
||||
Reference in New Issue
Block a user