IExtension Interface |
The three most common types of extension, from most to least common are:
Namespace: NetQuarry
The IExtension type exposes the following members.
Name | Description | |
---|---|---|
Owner | The object (e.g. IMapper, IAppContext) owning this extension. | |
Properties | The Properties associated with this extension. | |
TextItems | The TextItems collection of localized text associated with this extension. |
Name | Description | |
---|---|---|
Info |
Returns an object for the ExtInfo item requested.
| |
OnEvent |
This method is called to fire an ExtensionEvents event. The extension responds to this event.
| |
OnUnload |
Notifies the extension that it should perform any cleanup necessary just prior to being unloaded.
|
Extensions are a key concept of the NetQuarry platform. Extensions are libraries (assemblies) that receive events from the running application objects. For example, when a record in a page is changed, the IMapper representing that data fires update events (notifications) through all of the extensions configured (via meta-data) on that object.
This is a powerful programming pattern that is extremely simple for application developers, even those unfamiliar with Microsoft .NET to quickly grasp and master.
To create an extension, the developer runs a wizard from the Studio that allows them to specify the name, location, language (C#, VB.NET), and which objects they want to attach the extension. Extensions must implement a known interface (IExtension) or derive from a provided base class.