mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Plugin system] Move checksums to dependency injection.
This commit is contained in:
@@ -43,6 +43,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Macross.Json.Extensions" Version="3.0.0"/>
|
<PackageReference Include="Macross.Json.Extensions" Version="3.0.0"/>
|
||||||
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.0-rc.1.23419.4"/>
|
||||||
<PackageReference Include="System.ComponentModel.Annotations" Version="6.0.0-preview.4.21253.7"/>
|
<PackageReference Include="System.ComponentModel.Annotations" Version="6.0.0-preview.4.21253.7"/>
|
||||||
<PackageReference Include="System.Security.Principal.Windows" Version="6.0.0-preview.5.21301.5"/>
|
<PackageReference Include="System.Security.Principal.Windows" Version="6.0.0-preview.5.21301.5"/>
|
||||||
<PackageReference Include="System.Text.Json" Version="8.0.0-rc.1.23419.4"/>
|
<PackageReference Include="System.Text.Json" Version="8.0.0-rc.1.23419.4"/>
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace Aaru.CommonTypes.Interfaces;
|
namespace Aaru.CommonTypes.Interfaces;
|
||||||
|
|
||||||
@@ -46,9 +47,11 @@ namespace Aaru.CommonTypes.Interfaces;
|
|||||||
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
||||||
public interface IPluginRegister
|
public interface IPluginRegister
|
||||||
{
|
{
|
||||||
/// <summary>Gets all checksum plugins</summary>
|
/// <summary>
|
||||||
/// <returns>List of checksum plugins</returns>
|
/// Registers all checksum plugins in the provided service collection
|
||||||
List<Type> GetAllChecksumPlugins();
|
/// </summary>
|
||||||
|
/// <param name="services">Service collection</param>
|
||||||
|
void RegisterChecksumPlugins(IServiceCollection services);
|
||||||
|
|
||||||
/// <summary>Gets all filesystem plugins</summary>
|
/// <summary>Gets all filesystem plugins</summary>
|
||||||
/// <returns>List of filesystem plugins</returns>
|
/// <returns>List of filesystem plugins</returns>
|
||||||
|
|||||||
Reference in New Issue
Block a user