Class PluginBase
- Namespace
- FoundationaLLM.Common.Services.Plugins
- Assembly
- FoundationaLLM.Common.dll
Implements the basic functionality of a plugin.
public class PluginBase
- Inheritance
-
PluginBase
- Derived
- Inherited Members
- Extension Methods
Constructors
PluginBase(Dictionary<string, object>, IPluginPackageManager, IServiceProvider)
Initializes the plugin with the specified parameters and package manager.
public PluginBase(Dictionary<string, object> pluginParameters, IPluginPackageManager packageManager, IServiceProvider serviceProvider)
Parameters
pluginParameters
Dictionary<string, object>The dictionary containing the plugin parameters.
packageManager
IPluginPackageManagerThe package manager for the plugin.
serviceProvider
IServiceProviderThe service provider of the dependency injection container.
Fields
_logger
protected readonly ILogger<PluginBase> _logger
Field Value
_packageManager
protected readonly IPluginPackageManager _packageManager
Field Value
_pluginMetadata
protected readonly PluginMetadata _pluginMetadata
Field Value
_pluginParameters
protected readonly Dictionary<string, object> _pluginParameters
Field Value
_serviceProvider
protected readonly IServiceProvider _serviceProvider
Field Value
Properties
Name
protected virtual string Name { get; }