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, IPluginPackageManagerResolver, IServiceProvider)
Initializes the plugin with the specified parameters and package manager.
public PluginBase(Dictionary<string, object> pluginParameters, IPluginPackageManager packageManager, IPluginPackageManagerResolver packageManagerResolver, IServiceProvider serviceProvider)
  Parameters
pluginParametersDictionary<string, object>The dictionary containing the plugin parameters.
packageManagerIPluginPackageManagerThe package manager for the plugin.
packageManagerResolverIPluginPackageManagerResolverThe package manager resolver for the plugin.
serviceProviderIServiceProviderThe service provider of the dependency injection container.
Fields
_logger
protected readonly ILogger<PluginBase> _logger
  Field Value
_packageManager
protected readonly IPluginPackageManager _packageManager
  Field Value
_packageManagerResolver
protected readonly IPluginPackageManagerResolver _packageManagerResolver
  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; }