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
Type | Name |
---|---|
System.Data.Common.DbCommand | profiledDbCommand |
ServiceStack.MiniProfiler.Data.ExecuteType | executeType |
ExecuteFinish(DbCommand, ExecuteType, DbDataReader)
Called when a reader finishes executing
View Source
Declaration
void ExecuteFinish(DbCommand profiledDbCommand, ExecuteType executeType, DbDataReader reader)
Parameters
Type | Name |
---|---|
System.Data.Common.DbCommand | profiledDbCommand |
ServiceStack.MiniProfiler.Data.ExecuteType | executeType |
System.Data.Common.DbDataReader | reader |
ReaderFinish(DbDataReader)
Called when a reader is done iterating through the data
View Source
Declaration
void ReaderFinish(DbDataReader reader)
Parameters
Type | Name |
---|---|
System.Data.Common.DbDataReader | reader |
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
Type | Name |
---|---|
System.Data.Common.DbCommand | profiledDbCommand |
ServiceStack.MiniProfiler.Data.ExecuteType | executeType |
System.Exception | exception |