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.
Inherited Members
Namespace: SdlSdl.CorePluginFramework
Assembly: Sdl.Core.PluginFramework.dll
Syntax
public class ValidatingSystemPluginLocator : IValidatingPluginLocator, IPluginLocator, IDisposable
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 |
---|---|
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 |
---|---|
ListIPluginDescriptor |
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 |
---|---|
ListIPluginDescriptor |
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. |