Interface IEventContext
Assembly: Hsl.Xrm.Sdk.Plugin.dll
Syntax
public interface IEventContext
Properties
ActionTypeName
Declaration
string ActionTypeName { get; }
Property Value
Type |
Description |
System.String |
|
ExecutionContext
Declaration
IExecutionContext ExecutionContext { get; }
Property Value
Type |
Description |
Microsoft.Xrm.Sdk.IExecutionContext |
|
IsExecutingAsynchronously
Declaration
bool IsExecutingAsynchronously { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsExecutingInSandbox
Declaration
bool IsExecutingInSandbox { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsExecutingSynchronously
Declaration
bool IsExecutingSynchronously { get; }
Property Value
Type |
Description |
System.Boolean |
|
TracingService
Declaration
ITracingService TracingService { get; }
Property Value
Type |
Description |
Microsoft.Xrm.Sdk.ITracingService |
|
XrmContext
Declaration
IXrmContext XrmContext { get; }
Property Value
Methods
Assert(Boolean, String, Object[])
Declaration
void Assert(bool condition, string message, params object[] args)
Parameters
Type |
Name |
Description |
System.Boolean |
condition |
|
System.String |
message |
|
System.Object[] |
args |
|
BuildInnerException(Exception)
Declaration
Exception BuildInnerException(Exception ex)
Parameters
Type |
Name |
Description |
System.Exception |
ex |
|
Returns
Type |
Description |
System.Exception |
|
CanSendException(Exception)
Declaration
bool CanSendException(Exception ex)
Parameters
Type |
Name |
Description |
System.Exception |
ex |
|
Returns
Type |
Description |
System.Boolean |
|
GetOrgService(Nullable<Guid>)
Declaration
IOrganizationService GetOrgService(Guid? userId)
Parameters
Type |
Name |
Description |
System.Nullable<System.Guid> |
userId |
Pass 'null' to indicate the SYSTEM user and 'default' to indicate the Executing User
|
Returns
Type |
Description |
Microsoft.Xrm.Sdk.IOrganizationService |
|
Throw(String, Exception, Object[])
Declaration
void Throw(string message, Exception inner, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
message |
|
System.Exception |
inner |
|
System.Object[] |
args |
|
Trace(String, Object[])
Declaration
void Trace(string message, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
message |
|
System.Object[] |
args |
|
TraceException(String, Exception, Object[])
Declaration
void TraceException(string message, Exception ex, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
message |
|
System.Exception |
ex |
|
System.Object[] |
args |
|