AutoForge/src/AutoForge.UI/Features/Foundation/AddAutoForgeUi.cs

32 lines
1.3 KiB
C#

using AutoForge.UI.Features.ExecutionTargets.SelectExecutionTarget;
using AutoForge.UI.Features.Vehicles.Diagnostics;
using AutoForge.UI.Features.Vehicles.Profiles;
using AutoForge.UI.Features.Vehicles.Simulation;
using AutoForge.Application.Features.Vehicles.Simulation;
using AutoForge.Application.Features.Vehicles.Telemetry.LiveDashboard;
using AutoForge.Application.Features.Vehicles.Telemetry.Recording;
using AutoForge.Application.Features.Vehicles.Telemetry.Replay;
using AutoForge.Application.Features.DisplayUnits;
using Microsoft.Extensions.DependencyInjection;
namespace AutoForge.UI;
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddAutoForgeUi(this IServiceCollection services)
{
ArgumentNullException.ThrowIfNull(services);
services.AddAutoForgeDynamicsConfigurations();
services.AddAutoForgeLiveDashboard();
services.AddAutoForgeDisplayUnits();
services.AddAutoForgeTelemetryRecordingFallback();
services.AddAutoForgeTelemetryReplay();
services.AddScoped<ExecutionTargetSelectionViewModel>();
services.AddScoped<DiagnosticPageViewModel>();
services.AddScoped<VehicleProfilePageViewModel>();
services.AddScoped<SimulationPageViewModel>();
return services;
}
}