Skip to main content

IDbProfiler

A callback for ProfiledDbConnection and family

Assembly: ServiceStack.Common.dll​
View Source​
Declaration
public interface IDbProfiler

Properties​

IsActive​

True if the profiler instance is active

View Source​
Declaration
bool IsActive { get; }

Methods​

ExecuteStart(DbCommand, ExecuteType)​

Called when a command starts executing

View Source​
Declaration
void ExecuteStart(DbCommand profiledDbCommand, ExecuteType executeType)
Parameters​
TypeName
System.Data.Common.DbCommandprofiledDbCommand
ServiceStack.MiniProfiler.Data.ExecuteTypeexecuteType

ExecuteFinish(DbCommand, ExecuteType, DbDataReader)​

Called when a reader finishes executing

View Source​
Declaration
void ExecuteFinish(DbCommand profiledDbCommand, ExecuteType executeType, DbDataReader reader)
Parameters​
TypeName
System.Data.Common.DbCommandprofiledDbCommand
ServiceStack.MiniProfiler.Data.ExecuteTypeexecuteType
System.Data.Common.DbDataReaderreader

ReaderFinish(DbDataReader)​

Called when a reader is done iterating through the data

View Source​
Declaration
void ReaderFinish(DbDataReader reader)
Parameters​
TypeName
System.Data.Common.DbDataReaderreader

OnError(DbCommand, ExecuteType, Exception)​

Called when an error happens during execution of a command

View Source​
Declaration
void OnError(DbCommand profiledDbCommand, ExecuteType executeType, Exception exception)
Parameters​
TypeName
System.Data.Common.DbCommandprofiledDbCommand
ServiceStack.MiniProfiler.Data.ExecuteTypeexecuteType
System.Exceptionexception