Show / Hide Table of Contents

    Interface IPluginEventContext

    Event context for a plugin.

    Inherited Members
    IBasePluginEventContext.ServiceProvider
    IBasePluginEventContext.PluginContext
    IBasePluginEventContext.Logger
    IBasePluginEventContext.GetSharedVariable<T>(String, Boolean, T)
    IBasePluginEventContext.TraceConfig
    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 IPluginEventContext : IBasePluginEventContext, IEventContext

    Properties

    ConfigManager

    Declaration
    PluginConfigurationManager ConfigManager { get; }
    Property Value
    Type Description
    PluginConfigurationManager

    TargetInput

    Declaration
    Entity TargetInput { get; }
    Property Value
    Type Description
    Microsoft.Xrm.Sdk.Entity

    TargetInputEntityReference

    Declaration
    EntityReference TargetInputEntityReference { get; }
    Property Value
    Type Description
    Microsoft.Xrm.Sdk.EntityReference

    TargetPostImage

    Declaration
    Entity TargetPostImage { get; }
    Property Value
    Type Description
    Microsoft.Xrm.Sdk.Entity

    TargetPreImage

    Declaration
    Entity TargetPreImage { get; }
    Property Value
    Type Description
    Microsoft.Xrm.Sdk.Entity

    Methods

    AttributeChangedPreImageToPostImage(String)

    Declaration
    bool AttributeChangedPreImageToPostImage(string attribute)
    Parameters
    Type Name Description
    System.String attribute
    Returns
    Type Description
    System.Boolean

    AttributeChangedPreImageToTarget(String)

    Declaration
    bool AttributeChangedPreImageToTarget(string attribute)
    Parameters
    Type Name Description
    System.String attribute
    Returns
    Type Description
    System.Boolean

    GetTargetValue<T>(String)

    Gets an attribute from the PostImage Target, InputParameters, or PreImage Target parameter, in that order. If the value is not found in any of them, then a value of default(T) will be returned.

    Declaration
    T GetTargetValue<T>(string attributeName)
    Parameters
    Type Name Description
    System.String attributeName
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Initialize(String, IServiceProvider, PluginConfigurationManager, PluginTraceConfiguration)

    Declaration
    void Initialize(string pluginName, IServiceProvider serviceProvider, PluginConfigurationManager configManager, PluginTraceConfiguration traceConfig)
    Parameters
    Type Name Description
    System.String pluginName
    System.IServiceProvider serviceProvider
    PluginConfigurationManager configManager
    PluginTraceConfiguration traceConfig
    Back to top Hsl.Xrm.Sdk