From 4a9071b824f81aded0abc0f3040200887c09ffbd Mon Sep 17 00:00:00 2001 From: Katter Date: Mon, 14 Oct 2024 01:00:56 +0500 Subject: [PATCH] Register screenshotting services --- SightKeeper.Avalonia/Setup/ServicesBootstrapper.cs | 3 ++- SightKeeper.Avalonia/Setup/WindowsBootstrapper.cs | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/SightKeeper.Avalonia/Setup/ServicesBootstrapper.cs b/SightKeeper.Avalonia/Setup/ServicesBootstrapper.cs index 832a1f06..1c039642 100644 --- a/SightKeeper.Avalonia/Setup/ServicesBootstrapper.cs +++ b/SightKeeper.Avalonia/Setup/ServicesBootstrapper.cs @@ -10,6 +10,7 @@ using SightKeeper.Data.Binary.Services; using SightKeeper.Domain.Model.DataSets; using SightKeeper.Domain.Model.DataSets.Screenshots; +using SixLabors.ImageSharp.PixelFormats; using GamesDataAccess = SightKeeper.Application.Games.GamesDataAccess; namespace SightKeeper.Avalonia.Setup; @@ -29,7 +30,7 @@ public static void Setup(ContainerBuilder builder) builder.RegisterType(); builder.RegisterType().SingleInstance(); builder.RegisterType().As(); - builder.RegisterType(); + builder.RegisterType>().As(); } private static void SetupBinarySerialization(ContainerBuilder builder) diff --git a/SightKeeper.Avalonia/Setup/WindowsBootstrapper.cs b/SightKeeper.Avalonia/Setup/WindowsBootstrapper.cs index f2ff5ca2..70ce8ecd 100644 --- a/SightKeeper.Avalonia/Setup/WindowsBootstrapper.cs +++ b/SightKeeper.Avalonia/Setup/WindowsBootstrapper.cs @@ -1,7 +1,9 @@ #if OS_WINDOWS using Autofac; +using SightKeeper.Application; using SightKeeper.Application.Games; using SightKeeper.Application.Windows; +using SixLabors.ImageSharp.PixelFormats; namespace SightKeeper.Avalonia.Setup; @@ -11,6 +13,7 @@ public static void Setup(ContainerBuilder builder) { builder.RegisterType().As(); builder.RegisterType().As(); + builder.RegisterType().As>(); } } #endif \ No newline at end of file