Class PluginService
- Namespace
 - FoundationaLLM.Common.Services.Plugins
 
- Assembly
 - FoundationaLLM.Common.dll
 
Provides capabilities for managing plugins.
public class PluginService : IPluginService
  - Inheritance
 - 
      
      PluginService
 
- Implements
 
- Inherited Members
 
- Extension Methods
 
Constructors
PluginService(IResourceProviderService, IServiceProvider)
Provides capabilities for managing plugins.
public PluginService(IResourceProviderService pluginResourceProvider, IServiceProvider serviceProvider)
  Parameters
pluginResourceProviderIResourceProviderServiceThe FoundationaLLM Plugin resource provider service.
serviceProviderIServiceProviderThe service collection provided by the dependency injection container.
Methods
GetDataPipelineStagePlugin(string, string, Dictionary<string, object>, UnifiedUserIdentity)
Retrieves the data pipeline stage plugin based on the specified plugin object identifier.
public Task<IDataPipelineStagePlugin> GetDataPipelineStagePlugin(string instanceId, string pluginObjectId, Dictionary<string, object> pluginParameters, UnifiedUserIdentity userIdentity)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
pluginObjectIdstringThe plugin object identifier.
pluginParametersDictionary<string, object>The dictionary containing the names and values of the plugin parameters.
userIdentityUnifiedUserIdentityThe identity of the user running the operation.
Returns
- Task<IDataPipelineStagePlugin>
 The data pipeline stage plugin.
GetDataSourcePlugin(string, string, Dictionary<string, object>, string, UnifiedUserIdentity)
Retrieves the data source plugin based on the specified plugin object identifier.
public Task<IDataSourcePlugin> GetDataSourcePlugin(string instanceId, string pluginObjectId, Dictionary<string, object> pluginParameters, string dataSourceObjectId, UnifiedUserIdentity userIdentity)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
pluginObjectIdstringThe plugin object identifier.
pluginParametersDictionary<string, object>The dictionary containing the names and values of the plugin parameters.
dataSourceObjectIdstringThe FoundationaLLM object identifier of the data source.
userIdentityUnifiedUserIdentityThe identity of the user running the operation.
Returns
- Task<IDataSourcePlugin>
 The data source plugin.
GetPluginPackageManager(string, string, UnifiedUserIdentity)
Retrieves the data source plugin based on the specified plugin object identifier.
public Task<IPluginPackageManager> GetPluginPackageManager(string instanceId, string pluginObjectId, UnifiedUserIdentity userIdentity)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
pluginObjectIdstringThe plugin object identifier.
userIdentityUnifiedUserIdentityThe identity of the user running the operation.
Returns
- Task<IPluginPackageManager>
 The plugin package manager instance that manages the plugin.