Table of Contents

Interface IEventContext

Namespace
Hsl.Xrm.Sdk.Plugin
Assembly
Hsl.Xrm.Sdk.Plugin.dll
public interface IEventContext

Properties

ActionTypeName

string ActionTypeName { get; }

Property Value

string

ExecutionContext

IExecutionContext ExecutionContext { get; }

Property Value

IExecutionContext

IsExecutingAsynchronously

bool IsExecutingAsynchronously { get; }

Property Value

bool

IsExecutingInSandbox

bool IsExecutingInSandbox { get; }

Property Value

bool

IsExecutingSynchronously

bool IsExecutingSynchronously { get; }

Property Value

bool

TracingService

ITracingService TracingService { get; }

Property Value

ITracingService

XrmContext

IXrmContext XrmContext { get; }

Property Value

IXrmContext

Methods

Assert(bool, string, params object[])

void Assert(bool condition, string message, params object[] args)

Parameters

condition bool
message string
args object[]

BuildInnerException(Exception)

Exception? BuildInnerException(Exception ex)

Parameters

ex Exception

Returns

Exception

CanSendException(Exception)

bool CanSendException(Exception ex)

Parameters

ex Exception

Returns

bool

GetOrgService(Guid?)

IOrganizationService GetOrgService(Guid? userId)

Parameters

userId Guid?

Pass 'null' to indicate the SYSTEM user and 'default' to indicate the Executing User

Returns

IOrganizationService

Throw(string, Exception?, params object[])

void Throw(string message, Exception? inner, params object[] args)

Parameters

message string
inner Exception
args object[]

Trace(string, params object[])

void Trace(string message, params object[] args)

Parameters

message string
args object[]

TraceException(string, Exception, params object[])

void TraceException(string message, Exception ex, params object[] args)

Parameters

message string
ex Exception
args object[]