Class PluginBuilder
- Namespace
- SemanticPluginForge.Core
- Assembly
- SemanticPluginForge.Core.dll
Class for building a plugin with metadata.
public class PluginBuilder : IPluginBuilder, IFunctionBuilder
- Inheritance
-
PluginBuilder
- Implements
- Inherited Members
Constructors
PluginBuilder(IPluginMetadataProvider)
Class for building a plugin with metadata.
public PluginBuilder(IPluginMetadataProvider metadataProvider)
Parameters
metadataProvider
IPluginMetadataProviderThe metadata provider to retrieve external metadata to use to update the plugin.
Methods
PatchKernelFunctionWithMetadata(KernelPlugin, KernelFunction)
Patch a KernelFunction object.
public KernelFunction? PatchKernelFunctionWithMetadata(KernelPlugin plugin, KernelFunction function)
Parameters
plugin
KernelPluginThe plugin which contains the function.
function
KernelFunctionThe function which should be patched.
Returns
- KernelFunction
Returns null if the function should be suppressed,
function
if the function should not be patched otherwise the patched function.
PatchKernelPluginWithMetadata(KernelPlugin)
Patch a KernelPlugin object.
public KernelPlugin PatchKernelPluginWithMetadata(KernelPlugin plugin)
Parameters
plugin
KernelPluginThe plugin which should be patched.
Returns
- KernelPlugin
Returns the patched plugin instance.