Class PluginPackageManagerResolver
- Namespace
- FoundationaLLM.Common.Services.Plugins
- Assembly
- FoundationaLLM.Common.dll
Provides functionality to resolve and manage plugin packages.
public class PluginPackageManagerResolver : IPluginPackageManagerResolver
- Inheritance
-
PluginPackageManagerResolver
- Implements
- Inherited Members
- Extension Methods
Remarks
This class implements the IPluginPackageManagerResolver interface to offer methods for handling plugin package resolution. It is designed to be used in scenarios where dynamic loading and management of plugins are required.
Constructors
PluginPackageManagerResolver(IResourceProviderService)
Provides functionality to resolve and manage plugin packages.
public PluginPackageManagerResolver(IResourceProviderService pluginResourceProvider)
Parameters
pluginResourceProvider
IResourceProviderServiceThe resource provider service for plugins.
Remarks
This class implements the IPluginPackageManagerResolver interface to offer methods for handling plugin package resolution. It is designed to be used in scenarios where dynamic loading and management of plugins are required.
Methods
GetPluginPackageManager(PluginDefinition, UnifiedUserIdentity)
Retrieves an instance of the plugin package manager for the specified plugin definition and user identity.
public Task<IPluginPackageManager> GetPluginPackageManager(PluginDefinition pluginDefinition, UnifiedUserIdentity userIdentity)
Parameters
pluginDefinition
PluginDefinitionThe definition of the plugin for which the package manager is requested.
userIdentity
UnifiedUserIdentityThe identity of the user requesting the plugin package manager.
Returns
GetPluginPackageManager(string, UnifiedUserIdentity)
Asynchronously retrieves the plugin package manager associated with the specified plugin object identifier.
public Task<IPluginPackageManager> GetPluginPackageManager(string pluginObjectId, UnifiedUserIdentity userIdentity)
Parameters
pluginObjectId
stringThe unique identifier of the plugin object for which the package manager is requested.
userIdentity
UnifiedUserIdentityThe identity of the user requesting the package manager.
Returns
- Task<IPluginPackageManager>
A task that represents the asynchronous operation. The task result contains the IPluginPackageManager associated with the specified plugin object identifier.