forked from amkovkov/GranuSightSoftware2
feat: massive rework
1) GSS2.Core: - strip prefixes in GSS2.Core.Analysis.AmineContent namespace class names - add IEnumerable<double>.Variance extension - remake analysis + update database so not needed to store all every file, calibration data also stored in database, also currently capturing images stored in system temporary directory and rewriting every time 2) GSS.UI.Core: AsyncImageRecordViewModel make zoom and pans public 3) GSS: - remove image-storage-clear command - remove ResultsView and ResultsViewModel, results presented in analysis - rework calibration views - add analysis views - add text and number fields editors view - add confirmation view on danger buttons
This commit is contained in:
@@ -95,6 +95,9 @@ public static class DependencyInjectionHelper
|
||||
);
|
||||
public static IServiceCollection AddComputeResourcesService(this IServiceCollection services) => services
|
||||
.AddSingleton<ComputeResourcesService>();
|
||||
[Obsolete]
|
||||
public static IServiceCollection AddUsbService(this IServiceCollection services) => services
|
||||
.AddSingleton<UsbService>();
|
||||
public static IServiceCollection AddImageStorageService(this IServiceCollection services, DirectoryInfo rootDirectory) => services
|
||||
.AddSingleton<ImageStorageService>(
|
||||
serviceProvider =>
|
||||
@@ -107,7 +110,7 @@ public static class DependencyInjectionHelper
|
||||
);
|
||||
|
||||
public static IServiceCollection AddAmineContentCalibrationContext(this IServiceCollection services, IConfigurationManager configuration) => services
|
||||
.AddDbContext<AmineContentCalibrationContext>(
|
||||
.AddDbContext<CalibrationContext>(
|
||||
options =>
|
||||
{
|
||||
var databasePath = configuration.GetConnectionString("AmineContentCalibrationDatabasePath");
|
||||
@@ -116,7 +119,7 @@ public static class DependencyInjectionHelper
|
||||
ServiceLifetime.Singleton
|
||||
);
|
||||
public static IServiceCollection AddAmineContentResultsContext(this IServiceCollection services, IConfigurationManager configuration) => services
|
||||
.AddDbContext<AmineContentResultsContext>(
|
||||
.AddDbContext<ResultsContext>(
|
||||
options =>
|
||||
{
|
||||
var databasePath = configuration.GetConnectionString("AmineContentResultsDatabasePath");
|
||||
@@ -126,8 +129,8 @@ public static class DependencyInjectionHelper
|
||||
);
|
||||
|
||||
public static IServiceCollection AddAmineContentImageCapturerService(this IServiceCollection services) => services
|
||||
.AddSingleton<AmineContentImageCapturerService>();
|
||||
.AddSingleton<ImageCapturerService>();
|
||||
|
||||
public static IServiceCollection AddAmineContentAnalyzerService(this IServiceCollection services) => services
|
||||
.AddSingleton<AmineContentAnalyzerService>();
|
||||
.AddSingleton<AnalyzerService>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user