From 50e0b8071fb6898faae6ada7ee2a7938b7b62db5 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Thu, 5 Oct 2023 13:04:56 +0100 Subject: [PATCH] [Plugin system] Move checksums to dependency injection. --- Aaru.CommonTypes.csproj | 1 + Interfaces/IPluginRegister.cs | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Aaru.CommonTypes.csproj b/Aaru.CommonTypes.csproj index 53503c673..e073009c8 100644 --- a/Aaru.CommonTypes.csproj +++ b/Aaru.CommonTypes.csproj @@ -43,6 +43,7 @@ + diff --git a/Interfaces/IPluginRegister.cs b/Interfaces/IPluginRegister.cs index 1c28ce8e1..144d9d8b6 100644 --- a/Interfaces/IPluginRegister.cs +++ b/Interfaces/IPluginRegister.cs @@ -39,6 +39,7 @@ using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; +using Microsoft.Extensions.DependencyInjection; namespace Aaru.CommonTypes.Interfaces; @@ -46,9 +47,11 @@ namespace Aaru.CommonTypes.Interfaces; [SuppressMessage("ReSharper", "UnusedMember.Global")] public interface IPluginRegister { - /// Gets all checksum plugins - /// List of checksum plugins - List GetAllChecksumPlugins(); + /// + /// Registers all checksum plugins in the provided service collection + /// + /// Service collection + void RegisterChecksumPlugins(IServiceCollection services); /// Gets all filesystem plugins /// List of filesystem plugins