Class SortableExtensionAttribute
Base class for extension attributes that allow specifying topological sort information.
Inherited Members
Namespace: SdlSdl.CorePluginFrameworkUtil
Assembly: Sdl.Core.PluginFramework.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class SortableExtensionAttribute : ExtensionAttribute
Remarks
Use this attribute as a base when developing extension points that require the ability for their extensions to specify the order in which they should be used.
In order to consume extensions of a sortable extension point, use SortedObjectRegistry<TSortableExtensionAttribute, TExtensionType> if you want to create all extension instances at once. Use the TopologicalSort<T> class if you need more control over when the extensions are instantiated.
Constructors
SortableExtensionAttribute()
Default constructor for XML serialization.
Declaration
public SortableExtensionAttribute()
SortableExtensionAttribute(string, string, string)
Constructor with required attributes.
Declaration
public SortableExtensionAttribute(string id, string name, string description)
Parameters
Type | Name | Description |
---|---|---|
string | id | The unique id for the extension. |
string | name | The name for the extension. Should typically be a key of a resource string in PluginResources.resx. |
string | description | The description for the extension. Should typically be a key of a resource string in PluginResources.resx. |
Properties
InsertAfter
Gets or sets the id of the extension after which this extension should be inserted.
Declaration
public string InsertAfter { get; set; }
Property Value
Type | Description |
---|---|
string |
InsertBefore
Gets or sets the id of the extension before which this extension should be inserted.
Declaration
public string InsertBefore { get; set; }
Property Value
Type | Description |
---|---|
string |