Interface IEventContext
public interface IEventContext
Properties
ActionTypeName
string ActionTypeName { get; }
Property Value
ExecutionContext
IExecutionContext ExecutionContext { get; }
Property Value
IsExecutingAsynchronously
bool IsExecutingAsynchronously { get; }
Property Value
IsExecutingInSandbox
bool IsExecutingInSandbox { get; }
Property Value
IsExecutingSynchronously
bool IsExecutingSynchronously { get; }
Property Value
TracingService
ITracingService TracingService { get; }
Property Value
XrmContext
IXrmContext XrmContext { get; }
Property Value
Methods
Assert(bool, string, params object[])
void Assert(bool condition, string message, params object[] args)
Parameters
BuildInnerException(Exception)
Exception? BuildInnerException(Exception ex)
Parameters
ex
Exception
Returns
CanSendException(Exception)
bool CanSendException(Exception ex)
Parameters
ex
Exception
Returns
GetOrgService(Guid?)
IOrganizationService GetOrgService(Guid? userId)
Parameters
userId
Guid?Pass 'null' to indicate the SYSTEM user and 'default' to indicate the Executing User
Returns
Throw(string, Exception?, params object[])
void Throw(string message, Exception? inner, params object[] args)
Parameters
Trace(string, params object[])
void Trace(string message, params object[] args)
Parameters
TraceException(string, Exception, params object[])
void TraceException(string message, Exception ex, params object[] args)