feat: AvaloniaUi GSS2.Test

This commit is contained in:
2026-01-16 14:17:19 +03:00
parent af828a407d
commit 2ce8d3e966
11 changed files with 210 additions and 40 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ public static class DependencyInjectionHelper
return new IlluminatorService(logger, serviceConfiguration);
}
);
public static IServiceCollection AddCameraService(this IServiceCollection services, string section) => services
public static IServiceCollection AddCameraService(this IServiceCollection services, string section, bool autoInitialize = false) => services
.AddSingleton(
serviceProvider =>
{
@@ -71,7 +71,7 @@ public static class DependencyInjectionHelper
var logger = serviceProvider.GetService<ILogger<CameraService>>();
if (logger is null)
throw new Exception("Cannot get logger");
return new CameraService(logger, serviceConfiguration);
return new CameraService(logger, serviceConfiguration, autoInitialize);
}
);