Class OpenPlugin
Provides the base class for any plugin. All plugins running on OpenAPI must have atleast one class inhereting this.
Inheritance
System.Object
OpenPlugin
Namespace: OpenAPI.Plugins
Assembly: OpenAPI.dll
Syntax
public abstract class OpenPlugin : object
Constructors
| Improve this Doc View SourceOpenPlugin()
Declaration
protected OpenPlugin()
Properties
| Improve this Doc View SourceInfo
Declaration
public OpenPluginInfo Info { get; }
Property Value
Type | Description |
---|---|
OpenPluginInfo |
Methods
| Improve this Doc View SourceDisabled(OpenApi)
The method that gets invoked as soon as a plugin gets Disabled. Any content initialized in Enabled(OpenApi) should be de-initialized in here.
Declaration
public abstract void Disabled(OpenApi api)
Parameters
Type | Name | Description |
---|---|---|
OpenApi | api | An instance to OpenApi |
Enabled(OpenApi)
The method that gets invoked as soon as a plugin gets Enabled. Any initialization should be done in here.
Declaration
public abstract void Enabled(OpenApi api)
Parameters
Type | Name | Description |
---|---|---|
OpenApi | api | An instance to OpenApi |