2020-01-31 21:15:07 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// defines the capabilities of the plugin importer
|
2020-01-31 21:15:07 -05:00
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IPluginImporter
|
2022-01-26 11:32:16 -05:00
|
|
|
|
{
|
2020-01-31 21:15:07 -05:00
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// discovers C# assembly plugin and command types
|
2020-01-31 21:15:07 -05:00
|
|
|
|
/// </summary>
|
2020-02-11 17:44:06 -05:00
|
|
|
|
/// <returns>tuple of IPlugin implementation type definitions, and IManagerCommand type definitions</returns>
|
2021-03-22 12:09:25 -04:00
|
|
|
|
(IEnumerable<Type>, IEnumerable<Type>, IEnumerable<Type>) DiscoverAssemblyPluginImplementations();
|
2020-01-31 21:15:07 -05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// discovers the script plugins
|
2020-01-31 21:15:07 -05:00
|
|
|
|
/// </summary>
|
2020-02-11 17:44:06 -05:00
|
|
|
|
/// <returns>initialized script plugin collection</returns>
|
2022-02-07 19:43:36 -05:00
|
|
|
|
IEnumerable<IPlugin> DiscoverScriptPlugins(IServiceProvider serviceProvider);
|
2020-01-31 21:15:07 -05:00
|
|
|
|
}
|
2022-02-07 19:43:36 -05:00
|
|
|
|
}
|