Files
components/LiteCharms.Features.MidrandBooks.Seed/Program.cs
T
Khwezi Mngoma 60fcc70e98
continuous-integration/drone/pr Build is passing
Implemented Product Data Seeder
2026-05-29 18:56:08 +02:00

21 lines
660 B
C#

using LiteCharms.Features.MidrandBooks.Extensions;
using LiteCharms.Features.MidrandBooks.Seed;
using LiteCharms.Features.MidrandBooks.Seed.Configuration;
var builder = Host.CreateApplicationBuilder(args);
builder.Configuration
.AddJsonFile("appsettings.json")
.AddUserSecrets(typeof(Program).Assembly);
builder.Services
.AddLogging()
.AddShopServices()
.AddHostedService<ProductsSeederService>()
.AddMidrandShopDatabase(builder.Configuration);
builder.Services.Configure<CdnSettings>(options => builder.Configuration.GetSection(nameof(CdnSettings)).Bind(options));
using var host = builder.Build();
await host.RunAsync();