Show / Hide Table of Contents

    Interface IBasePluginEventContext

    Base interface for plugin contexts

    Inherited Members
    IEventContext.ActionTypeName
    IEventContext.Assert(Boolean, String, Object[])
    IEventContext.BuildInnerException(Exception)
    IEventContext.CanSendException(Exception)
    IEventContext.ExecutionContext
    IEventContext.GetOrgService(Nullable<Guid>)
    IEventContext.IsExecutingAsynchronously
    IEventContext.IsExecutingInSandbox
    IEventContext.IsExecutingSynchronously
    IEventContext.Throw(String, Exception, Object[])
    IEventContext.Trace(String, Object[])
    IEventContext.TraceException(String, Exception, Object[])
    IEventContext.TracingService
    IEventContext.XrmContext
    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

    Back to top Hsl.Xrm.Sdk