Files
Nemera/src/Nemera.Infrastructure/Common/Models/DTO/Plugins/PluginLoadResultDto.cs
T
BinaryAlley b30cbd6b9e Adds bundled plugin trust and cross-platform native deployment
- embeds the append-only historical and deny trust lists in the API and marks matching bundled plugins as Official without blocking loading
- builds and records the current plugin manifest only for official release builds
- deploys the PDF native libraries for the supported Linux, macOS and Windows runtimes from the plugin dependency manifest
- records release hashes by appending only missing entries to master's manifest and rejects any diff that removes a line
- documents the release flow, the supported runtimes and the plugin installer limits
2026-11-28 18:00:00 +02:00

28 lines
1.6 KiB
C#

#region ========================================================================= USING =====================================================================================
using Nemera.Infrastructure.Core.Plugins;
using Nemera.Plugins.Contracts.Core.Plugins;
using System.Collections.Generic;
#endregion
namespace Nemera.Infrastructure.Common.Models.DTO.Plugins;
/// <summary>
/// Data transfer object for the result of loading the plugins from the plugins directory.
/// </summary>
/// <param name="Plugins">The plugins that were loaded successfully.</param>
/// <param name="LoadContexts">
/// The load contexts of the successfully loaded plugins. The contexts are kept referenced here for the lifetime of the host, because a collectible
/// load context is only kept alive by a direct reference to the context object itself, and the garbage collector would otherwise unload the plugin assemblies mid-request,
/// when a lazily resolved dependency is first used.
/// </param>
/// <param name="Errors">The errors that occurred while loading the plugins.</param>
/// <param name="LoadedPlugins">The trust metadata of the successfully loaded plugins.</param>
/// <param name="Warnings">The warnings that occurred while loading the plugins, such as a trust status that could not be verified or a dependency manifest that could not be read.</param>
internal sealed record PluginLoadResultDto(
IReadOnlyList<IPlugin> Plugins,
IReadOnlyList<PluginLoadContext> LoadContexts,
IReadOnlyList<PluginLoadErrorDto> Errors,
IReadOnlyList<LoadedPluginMetadataDto> LoadedPlugins,
IReadOnlyList<string> Warnings
);