#region ========================================================================= USING ===================================================================================== using Lumina.Domain.Common.Primitives; using System.IO; using System.Threading; using System.Threading.Tasks; #endregion namespace Lumina.Application.Common.Infrastructure.Plugins; /// /// Service for installing plugins from an uploaded archive into the plugin storage directory. /// public interface IPluginInstaller { /// /// Installs the plugin from the provided archive, placing its assemblies into the plugin storage directory. /// The installed plugin is loaded by the host application at the next startup. /// /// The archive stream of the uploaded plugin. /// The file name of the uploaded plugin. /// Cancellation token that can be used to stop the execution. /// An representing either a successful operation, or an error. Task> InstallAsync(Stream archive, string fileName, CancellationToken cancellationToken); }