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
Properties
IncludeStackTrace
public bool IncludeStackTrace { get; }
Property Value
Threshold
public int Threshold { get; }
Property Value
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
commandDbCommandThe command being executed.
interceptionContextDbCommandInterceptionContext<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
commandDbCommandThe command being executed.
interceptionContextDbCommandInterceptionContext<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
commandDbCommandThe command being executed.
interceptionContextDbCommandInterceptionContext<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
commandDbCommandThe command being executed.
interceptionContextDbCommandInterceptionContext<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
commandDbCommandThe command being executed.
interceptionContextDbCommandInterceptionContext<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
commandDbCommandThe command being executed.
interceptionContextDbCommandInterceptionContext<object>Contextual information associated with the call.