-
-
Notifications
You must be signed in to change notification settings - Fork 44
iw4madminapplicationplugin PluginImporter
RaidMax edited this page May 21, 2023
·
1 revision
implementation of IPluginImporter discovers plugins and script plugins
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph IW4MAdmin.Application.Plugin
IW4MAdmin.Application.Plugin.PluginImporter[[PluginImporter]]
end
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.IPluginImporter[[IPluginImporter]]
class SharedLibraryCore.Interfaces.IPluginImporter interfaceStyle;
end
SharedLibraryCore.Interfaces.IPluginImporter --> IW4MAdmin.Application.Plugin.PluginImporter
Returns | Name |
---|---|
(IEnumerable <Type > Item1, IEnumerable <Type > Item2, IEnumerable <Type > Item3) |
DiscoverAssemblyPluginImplementations ()discovers all the C# assembly plugins and commands |
IEnumerable <(Type Item1, string Item2)> |
DiscoverScriptPlugins ()discovers all the script plugins in the plugins dir |
implementation of IPluginImporter discovers plugins and script plugins
public PluginImporter(ILogger<PluginImporter> logger, ApplicationConfiguration appConfig, IMasterApi masterApi, IRemoteAssemblyHandler remoteAssemblyHandler)
Type | Name | Description |
---|---|---|
ILogger <PluginImporter > |
logger | |
ApplicationConfiguration |
appConfig | |
IMasterApi |
masterApi | |
IRemoteAssemblyHandler |
remoteAssemblyHandler |
public virtual IEnumerable<(Type Item1, string Item2)> DiscoverScriptPlugins()
discovers all the script plugins in the plugins dir
public virtual (IEnumerable<Type> Item1, IEnumerable<Type> Item2, IEnumerable<Type> Item3) DiscoverAssemblyPluginImplementations()
discovers all the C# assembly plugins and commands
Generated with ModularDoc