Interface IPluginPackageManagerResolver
- Namespace
- FoundationaLLM.Common.Interfaces.Plugins
- Assembly
- FoundationaLLM.Common.dll
Defines a mechanism to resolve and retrieve a plugin package manager for a specified plugin object.
public interface IPluginPackageManagerResolver
- Extension Methods
Remarks
Implementations of this interface are responsible for providing the appropriate plugin package manager based on the given plugin object identifier.
Methods
GetPluginPackageManager(PluginDefinition, UnifiedUserIdentity)
Retrieves an instance of the plugin package manager for the specified plugin definition and user identity.
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.
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.