13 lines
529 B
C#
13 lines
529 B
C#
using RhSolutions.SkuParser.Abstractions;
|
|
using RhSolutions.SkuParser.Services;
|
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
builder.Services
|
|
.AddKeyedScoped<ISkuParser, CommonCsvParser>("text/csv")
|
|
.AddKeyedScoped<ISkuParser, CommonExcelParser>("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
|
|
.AddKeyedScoped<ISkuParser, CommonExcelParser>("application/vnd.ms-excel.sheet.macroenabled.12");
|
|
builder.Services.AddControllers();
|
|
|
|
var app = builder.Build();
|
|
app.MapControllers();
|
|
app.Run(); |