Show / Hide Table of Contents

    Class PluginEventContext2

    Inheritance
    System.Object
    EventContext
    PluginEventContext2
    Implements
    IPluginEventContext2
    IBasePluginEventContext
    IEventContext
    Inherited Members
    EventContext.ActionTypeName
    EventContext.ExecutionContext
    EventContext.IsExecutingAsynchronously
    EventContext.IsExecutingSynchronously
    EventContext.IsExecutingInSandbox
    EventContext.SystemOrgService
    EventContext.UserOrgService
    EventContext.InitiatingUserOrgService
    EventContext.TracingService
    EventContext.XrmContext
    EventContext.GetOrgService(Nullable<Guid>)
    EventContext.Assert(Boolean, String, Object[])
    EventContext.Throw(String, Exception, Object[])
    EventContext.TraceException(String, Exception, Object[])
    EventContext.Trace(String, Object[])
    EventContext.BuildInnerException(Exception)
    EventContext.CanSendException(Exception)
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Hsl.Xrm.Sdk.Plugin
    Assembly: Hsl.Xrm.Sdk.Plugin.dll
    Syntax
    public class PluginEventContext2 : EventContext, IPluginEventContext2, IBasePluginEventContext, IEventContext

    Constructors

    PluginEventContext2(String, PluginGeneralConfiguration, IServiceProvider)

    Declaration
    public PluginEventContext2(string pluginName, PluginGeneralConfiguration generalConfig, IServiceProvider serviceProvider)
    Parameters
    Type Name Description
    System.String pluginName
    PluginGeneralConfiguration generalConfig
    System.IServiceProvider serviceProvider

    Properties

    Logger

    Declaration
    public IHslLogger Logger { get; }
    Property Value
    Type Description
    Hsl.Logging.IHslLogger

    PluginContext

    Declaration
    public IPluginExecutionContext PluginContext { get; }
    Property Value
    Type Description
    Microsoft.Xrm.Sdk.IPluginExecutionContext

    ServiceProvider

    Declaration
    public IServiceProvider ServiceProvider { get; }
    Property Value
    Type Description
    System.IServiceProvider

    Targets

    Declaration
    public IReadOnlyList<TargetItem> Targets { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<TargetItem>

    TraceConfig

    Declaration
    public PluginTraceConfiguration TraceConfig { get; }
    Property Value
    Type Description
    PluginTraceConfiguration

    Methods

    GetExecutionContext()

    Declaration
    protected override IExecutionContext GetExecutionContext()
    Returns
    Type Description
    Microsoft.Xrm.Sdk.IExecutionContext
    Overrides
    EventContext.GetExecutionContext()

    GetOrganizationServiceFactory()

    Declaration
    protected override IOrganizationServiceFactory GetOrganizationServiceFactory()
    Returns
    Type Description
    Microsoft.Xrm.Sdk.IOrganizationServiceFactory
    Overrides
    EventContext.GetOrganizationServiceFactory()

    GetParentContext(IExecutionContext)

    Declaration
    protected override IExecutionContext GetParentContext(IExecutionContext ctx)
    Parameters
    Type Name Description
    Microsoft.Xrm.Sdk.IExecutionContext ctx
    Returns
    Type Description
    Microsoft.Xrm.Sdk.IExecutionContext
    Overrides
    EventContext.GetParentContext(IExecutionContext)

    GetSharedVariable<T>(String, Boolean, T)

    Declaration
    public T GetSharedVariable<T>(string name, bool includeParentContexts = true, T defaultValue = null)
    Parameters
    Type Name Description
    System.String name
    System.Boolean includeParentContexts
    T defaultValue
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetTracingService()

    Declaration
    protected override ITracingService GetTracingService()
    Returns
    Type Description
    Microsoft.Xrm.Sdk.ITracingService
    Overrides
    EventContext.GetTracingService()

    Implements

    IPluginEventContext2
    IBasePluginEventContext
    IEventContext
    Back to top Hsl.Xrm.Sdk