Interface IBasePluginEventContext
Base interface for plugin contexts
Inherited Members
Namespace: Hsl.Xrm.Sdk.Plugin
Assembly: Hsl.Xrm.Sdk.Plugin.dll
Syntax
public interface IBasePluginEventContext : IEventContext
Properties
Logger
Logger
Declaration
IHslLogger Logger { get; }
Property Value
Type | Description |
---|---|
Hsl.Logging.IHslLogger |
PluginContext
Plugin execution context
Declaration
IPluginExecutionContext PluginContext { get; }
Property Value
Type | Description |
---|---|
Microsoft.Xrm.Sdk.IPluginExecutionContext |
ServiceProvider
The plugin service provider
Declaration
IServiceProvider ServiceProvider { get; }
Property Value
Type | Description |
---|---|
System.IServiceProvider |
TraceConfig
Plugin Trace Configuration
Declaration
PluginTraceConfiguration TraceConfig { get; }
Property Value
Type | Description |
---|---|
PluginTraceConfiguration |
Methods
GetSharedVariable<T>(String, Boolean, T)
Gets a value from plugin context shared variables
Declaration
T GetSharedVariable<T>(string name, bool includeParentContexts = true, T defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | key of the field to get |
System.Boolean | includeParentContexts | Whether to check parent plugin contexts |
T | defaultValue | Default value if not found |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | Type of value to get |