aboutsummaryrefslogtreecommitdiff
path: root/RhSolutions.SkuParser.Api/Program.cs
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2025-01-14 14:01:01 +0000
committerSerghei Cebotari <serghei@cebotari.ru>2025-01-14 14:01:01 +0000
commita542bfb7f4ceee8b49cf8fcadf64ffb72cc97da5 (patch)
tree5e9563638eb09a4c3a1c717a6f238139fc66dc53 /RhSolutions.SkuParser.Api/Program.cs
parente2ac0c46c1a1085ab7e7597e463e73f371ce2791 (diff)
Common Parsing Method
Diffstat (limited to 'RhSolutions.SkuParser.Api/Program.cs')
-rw-r--r--RhSolutions.SkuParser.Api/Program.cs7
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();