forked from amkovkov/GranuSightSoftware2
feat: GSS2.Test refactor + ComputeResourcesService
This commit is contained in:
@@ -1,19 +1,17 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.IdentityModel.Protocols.Configuration;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
using GSS2.Core.Hardware;
|
||||
using GSS2.Core.Analysis.AmineContent.Database;
|
||||
using GSS2.Test.Views;
|
||||
using GSS2.Test.ViewModels;
|
||||
|
||||
namespace GSS2.Test;
|
||||
|
||||
public static class DependencyInjectionHelper
|
||||
{
|
||||
public static IServiceCollection AddUi(this IServiceCollection services) =>
|
||||
public static IServiceCollection AddViewsAndModels(this IServiceCollection services) =>
|
||||
services
|
||||
.AddTransient<CameraView>()
|
||||
.AddTransient<CameraViewModel>()
|
||||
.AddTransient<MainWindowViewModel>();
|
||||
.AddSingleton<MainWindowViewModel>()
|
||||
.AddSingleton<MainView>()
|
||||
.AddSingleton<MainViewModel>()
|
||||
.AddSingleton<ResourcesView>()
|
||||
.AddSingleton<ResourcesViewModel>();
|
||||
// .AddSingleton<CameraView>()
|
||||
// .AddSingleton<CameraViewModel>();
|
||||
}
|
||||
Reference in New Issue
Block a user