IPlugin Interface

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

Interface for plugins and their metadata. The functionality in plugins can be enabled or disabled by toggling the IsEnabled flag.

public interface IPlugin : IExtension, IExpando, IDynamicMetaObjectProvider, IEnumerable>, IEnumerable, ICloneable

Properties

Color Gets or sets the icon color.
Description Gets or sets a value that is used to display a description in the UI.
FullName Gets the fully qualified class name of the plugin.
Icon Gets or sets the icon name.
Id Gets the globally unique Id of the plugin.
IsEnabled Gets or sets a value indicating whether the plugin is enabled.
Name Gets or sets a value that is used for display in the UI.
Type Gets the type of the plugin.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
IsCore(IPlugin) Gets a value indicating whether this is a core extension (that cannot be disabled).
IsLoaded(IPlugin) Returns a value indicating if the specified plugin has been loaded into the AppDomain.
GetGroups(IPlugin) Gets the names for the groups used to group scaffolded plugin properties in the UI.
HasGroup(IPlugin, String) Returns a value indicating if the plugin has any scaffolded property with the specified group name.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.