aboutsummaryrefslogtreecommitdiff
path: root/src/Enmarcha.Backend/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Enmarcha.Backend/Program.cs')
-rw-r--r--src/Enmarcha.Backend/Program.cs17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/Enmarcha.Backend/Program.cs b/src/Enmarcha.Backend/Program.cs
index 9bc0eb3..785afe5 100644
--- a/src/Enmarcha.Backend/Program.cs
+++ b/src/Enmarcha.Backend/Program.cs
@@ -13,6 +13,8 @@ using Microsoft.EntityFrameworkCore;
using OpenTelemetry.Logs;
using OpenTelemetry.Resources;
using OpenTelemetry.Trace;
+using Enmarcha.Backend.Services.Processors.Normalisation;
+using Enmarcha.Backend.Services.Processors.RealTime;
var builder = WebApplication.CreateBuilder(args);
@@ -153,7 +155,8 @@ builder.Services.AddAuthentication(options =>
options.DefaultScheme = "Backoffice";
options.DefaultChallengeScheme = "Auth0";
})
- .AddCookie("Backoffice", options => {
+ .AddCookie("Backoffice", options =>
+ {
options.LoginPath = "/backoffice/auth/login";
options.Cookie.SameSite = SameSiteMode.None;
options.Cookie.SecurePolicy = CookieSecurePolicy.Always;
@@ -206,6 +209,14 @@ builder.Services.AddSingleton<FareService>();
builder.Services.AddScoped<IPushNotificationService, PushNotificationService>();
builder.Services.AddHostedService<AlertPhaseNotificationHostedService>();
+builder.Services.AddScoped<IArrivalsProcessor, FilterAndSortProcessor>();
+builder.Services.AddScoped<IArrivalsProcessor, NextStopsProcessor>();
+builder.Services.AddScoped<IArrivalsProcessor, ShapeProcessor>();
+builder.Services.AddScoped<IArrivalsProcessor, VitrasaNormalizationProcessor>();
+builder.Services.AddScoped<IArrivalsProcessor, XuntaNormalizationProcessor>();
+builder.Services.AddScoped<IArrivalsProcessor, TranviasNormalizationProcessor>();
+builder.Services.AddScoped<IArrivalsProcessor, ColourProcessor>();
+
builder.Services.AddScoped<IArrivalsProcessor, VitrasaRealTimeProcessor>();
builder.Services.AddScoped<IArrivalsProcessor, CorunaRealTimeProcessor>();
builder.Services.AddScoped<IArrivalsProcessor, TussaRealTimeProcessor>();
@@ -213,10 +224,6 @@ builder.Services.AddScoped<IArrivalsProcessor, CtagShuttleRealTimeProcessor>();
builder.Services.AddScoped<IArrivalsProcessor, VitrasaUsageProcessor>();
builder.Services.AddScoped<IArrivalsProcessor, RenfeRealTimeProcessor>();
-builder.Services.AddScoped<IArrivalsProcessor, FilterAndSortProcessor>();
-builder.Services.AddScoped<IArrivalsProcessor, NextStopsProcessor>();
-builder.Services.AddScoped<IArrivalsProcessor, ShapeProcessor>();
-builder.Services.AddScoped<IArrivalsProcessor, FeedConfigProcessor>();
builder.Services.AddScoped<ArrivalsPipeline>();
// builder.Services.AddKeyedScoped<IGeocodingService, NominatimGeocodingService>("Nominatim");