forked from amkovkov/GranuSightSoftware2
feat: AvaloniaUi GSS2.Test
This commit is contained in:
@@ -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);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user