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);
}
);
+1 -1
View File
@@ -21,7 +21,7 @@
<PackageReference Include="OpenCvSharp4.runtime.linux-arm" Version="4.11.0.20250506" />
<PackageReference Include="System.Device.Gpio" Version="4.0.1" />
<PackageReference Include="Iot.Device.Bindings" Version="4.0.1" />
<PackageReference Include="LibCameraSharp" Version="0.5.2-20260114" />
<PackageReference Include="LibCameraSharp" Version="0.5.2-20260116" />
</ItemGroup>
<ItemGroup>