diff options
author | Serghei Cebotari <serghei@cebotari.ru> | 2025-01-14 14:01:01 +0000 |
---|---|---|
committer | Serghei Cebotari <serghei@cebotari.ru> | 2025-01-14 14:01:01 +0000 |
commit | a542bfb7f4ceee8b49cf8fcadf64ffb72cc97da5 (patch) | |
tree | 5e9563638eb09a4c3a1c717a6f238139fc66dc53 /RhSolutions.SkuParser.Api/Program.cs | |
parent | e2ac0c46c1a1085ab7e7597e463e73f371ce2791 (diff) |
Common Parsing Method
Diffstat (limited to 'RhSolutions.SkuParser.Api/Program.cs')
-rw-r--r-- | RhSolutions.SkuParser.Api/Program.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/RhSolutions.SkuParser.Api/Program.cs b/RhSolutions.SkuParser.Api/Program.cs index e0acec8..13e0b90 100644 --- a/RhSolutions.SkuParser.Api/Program.cs +++ b/RhSolutions.SkuParser.Api/Program.cs @@ -1,10 +1,11 @@ +using RhSolutions.SkuParser.Abstractions;
using RhSolutions.SkuParser.Services;
var builder = WebApplication.CreateBuilder(args);
builder.Services
- .AddKeyedScoped<ISkuParser, CsvParser>("text/csv")
- .AddKeyedScoped<ISkuParser, ExcelParser>("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
- .AddKeyedScoped<ISkuParser, ExcelParser>("application/vnd.ms-excel.sheet.macroenabled.12");
+ .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();
|