Table of Contents

Class PluginBase2<TEntity>

Namespace
Hsl.Xrm.Sdk.Plugin
Assembly
Hsl.Xrm.Sdk.Plugin.dll

Base class for use with CreateMultiple or UpdateMultiple.

public abstract class PluginBase2<TEntity> : PluginBase2, IPlugin where TEntity : Entity

Type Parameters

TEntity
Inheritance
PluginBase2<TEntity>
Implements
Inherited Members

Constructors

PluginBase2()

Default constructor

public PluginBase2()

PluginBase2(string?, string?)

Config constructor

public PluginBase2(string? unsecureConfig, string? secureConfig)

Parameters

unsecureConfig string
secureConfig string

Methods

CreateEventContext(PluginGeneralConfiguration, IServiceProvider)

Creates the event context

protected override IPluginEventContext2 CreateEventContext(PluginGeneralConfiguration generalConfig, IServiceProvider serviceProvider)

Parameters

generalConfig PluginGeneralConfiguration
serviceProvider IServiceProvider

Returns

IPluginEventContext2

ExecuteAction(IPluginEventContext2)

public override void ExecuteAction(IPluginEventContext2 pluginEventContext)

Parameters

pluginEventContext IPluginEventContext2

ExecuteAction(IPluginEventContext2<TEntity>)

Executes the plugin operation.

public abstract void ExecuteAction(IPluginEventContext2<TEntity> pluginEventContext)

Parameters

pluginEventContext IPluginEventContext2<TEntity>