Class PluginBase
The base class to use for plugins using the Hsl.Xrm.Sdk.Plugin framework.
[Obsolete("Use PluginBase2 instead see https://docs.hitachisolutions.com/hslxrmsdk/articles/upgrading-pluginbase-to-pluginbase2.html")]
public abstract class PluginBase : IPlugin
- Inheritance
-
PluginBase
- Implements
- Derived
- Inherited Members
Constructors
PluginBase()
Default constructor
public PluginBase()
PluginBase(string?, string?)
Constructor which accepts unsecure and secure configuration.
public PluginBase(string? unsecureConfig, string? secureConfig)
Parameters
Methods
CreateContext()
Creates the context
protected virtual IPluginEventContext CreateContext()
Returns
Execute(IServiceProvider)
The code that the plugin will execute.
public void Execute(IServiceProvider serviceProvider)
Parameters
serviceProvider
IServiceProvider
ExecuteAction(IPluginEventContext)
Executes the business logic of the plugin.
public abstract void ExecuteAction(IPluginEventContext pluginEventContext)
Parameters
pluginEventContext
IPluginEventContext
LoadConfiguration(PluginConfigurationManager)
Used to read/process the configuration.
protected virtual void LoadConfiguration(PluginConfigurationManager configManager)
Parameters
configManager
PluginConfigurationManager