Table of Contents

Class SentryCommandInterceptor

Namespace
InSite
Assembly
InSite.UI.dll
public class SentryCommandInterceptor : IDbCommandInterceptor, IDbInterceptor
Inheritance
SentryCommandInterceptor
Implements
Inherited Members

Constructors

SentryCommandInterceptor(int, bool)

public SentryCommandInterceptor(int threshold, bool includeStackTrace)

Parameters

threshold int
includeStackTrace bool

Properties

IncludeStackTrace

public bool IncludeStackTrace { get; }

Property Value

bool

Threshold

public int Threshold { get; }

Property Value

int

Methods

NonQueryExecuted(DbCommand, DbCommandInterceptionContext<int>)

This method is called after a call to ExecuteNonQuery() or one of its async counterparts is made. The result used by Entity Framework can be changed by setting Result.

public void NonQueryExecuted(DbCommand command, DbCommandInterceptionContext<int> interceptionContext)

Parameters

command DbCommand

The command being executed.

interceptionContext DbCommandInterceptionContext<int>

Contextual information associated with the call.

Remarks

For async operations this method is not called until after the async task has completed or failed.

NonQueryExecuting(DbCommand, DbCommandInterceptionContext<int>)

This method is called before a call to ExecuteNonQuery() or one of its async counterparts is made.

public void NonQueryExecuting(DbCommand command, DbCommandInterceptionContext<int> interceptionContext)

Parameters

command DbCommand

The command being executed.

interceptionContext DbCommandInterceptionContext<int>

Contextual information associated with the call.

ReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>)

This method is called after a call to ExecuteReader(CommandBehavior) or one of its async counterparts is made. The result used by Entity Framework can be changed by setting Result.

public void ReaderExecuted(DbCommand command, DbCommandInterceptionContext<DbDataReader> interceptionContext)

Parameters

command DbCommand

The command being executed.

interceptionContext DbCommandInterceptionContext<DbDataReader>

Contextual information associated with the call.

Remarks

For async operations this method is not called until after the async task has completed or failed.

ReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>)

This method is called before a call to ExecuteReader(CommandBehavior) or one of its async counterparts is made.

public void ReaderExecuting(DbCommand command, DbCommandInterceptionContext<DbDataReader> interceptionContext)

Parameters

command DbCommand

The command being executed.

interceptionContext DbCommandInterceptionContext<DbDataReader>

Contextual information associated with the call.

ScalarExecuted(DbCommand, DbCommandInterceptionContext<object>)

This method is called after a call to ExecuteScalar() or one of its async counterparts is made. The result used by Entity Framework can be changed by setting Result.

public void ScalarExecuted(DbCommand command, DbCommandInterceptionContext<object> interceptionContext)

Parameters

command DbCommand

The command being executed.

interceptionContext DbCommandInterceptionContext<object>

Contextual information associated with the call.

Remarks

For async operations this method is not called until after the async task has completed or failed.

ScalarExecuting(DbCommand, DbCommandInterceptionContext<object>)

This method is called before a call to ExecuteScalar() or one of its async counterparts is made.

public void ScalarExecuting(DbCommand command, DbCommandInterceptionContext<object> interceptionContext)

Parameters

command DbCommand

The command being executed.

interceptionContext DbCommandInterceptionContext<object>

Contextual information associated with the call.