Class ValidatingSystemPluginLocator
This class is an extension to an existing IPluginLocator interface and allows installed third party plugins to be validated against their .sdlplugin packages and it's embedded signature.
Inheritance
Namespace: Sdl.Core.PluginFramework
Assembly: Sdl.Core.PluginFramework.dll
Syntax
public class ValidatingSystemPluginLocator : Object, IValidatingPluginLocator, IPluginLocator
Constructors
ValidatingSystemPluginLocator(IPluginLocator)
Constructs a ValidatingPluginLocator class using the supplied IPluginLocator base class and if Studio is started in secure mode.
Declaration
public ValidatingSystemPluginLocator(IPluginLocator baseLocator)
Parameters
Type | Name | Description |
---|---|---|
IPluginLocator | baseLocator | A base class that implements IPluginLocator. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
Properties
InvalidDescriptors
This property exposes a list of plug-in descriptors that have failed to validate against the original .sdlplugin package and it's embedded signature.
Declaration
public List<IPluginDescriptor> InvalidDescriptors { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<IPluginDescriptor> |
ValidatedDescriptors
This property exposes a list of validated plug-in descriptors that can be inspected or added to.
Declaration
public List<IPluginDescriptor> ValidatedDescriptors { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<IPluginDescriptor> |
Remarks
If any plug-in descriptors are added to this list then they will also be returned by a call to GetPluginDescriptors().
Methods
Dispose()
Disposes the plug-in locator.
Declaration
public void Dispose()
Remarks
This method is called automatically when the owning plug-in registry is disposed.
GetPluginDescriptors()
Returns an array of plug-in descriptors for plug-ins found.
Declaration
public IPluginDescriptor[] GetPluginDescriptors()
Returns
Type | Description |
---|---|
IPluginDescriptor[] | An array of plug-in descriptors. |