Plugin Class

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

Base class for plugins.

[Guid("1A9245F5-C78D-4DED-A0A0-833C6CCEBBB7")]
public class Plugin : Expando, IPlugin, IExtension, IExpando, IDynamicMetaObjectProvider, IEnumerable<KeyValuePair<string, object>>, IEnumerable, ICloneable
Inheritance:
System.Object → ExpandoPlugin
Attributes:
System.Runtime.InteropServices.GuidAttribute
Implements:
IPlugin, IExtension, IExpando

Constructors

Plugin() Initializes a new instance of the Plugin class.

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 or sets the full type 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 plugin type.

Methods

IExpando.get_Item(string)
IExpando.set_Item(string, object)
ToString() Returns a string that represents the current object.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, 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.