Rock.DebugHelper.DebugLoggingDbCommandInterceptor.ReaderExecuted C# (CSharp) Méthode

ReaderExecuted() public méthode

Readers the executed.
public ReaderExecuted ( System command, DbCommandInterceptionContext interceptionContext ) : void
command System The command.
interceptionContext DbCommandInterceptionContext The interception context.
Résultat void
            public override void ReaderExecuted( System.Data.Common.DbCommand command, DbCommandInterceptionContext<System.Data.Common.DbDataReader> interceptionContext )
            {
                var debugHelperUserState = interceptionContext.UserState as DebugHelperUserState;
                if ( debugHelperUserState != null )
                {
                    debugHelperUserState.Stopwatch.Stop();
                    System.Diagnostics.Debug.WriteLine( string.Format( "\n/* Call# {0}: ElapsedTime [{1}ms]*/\n", debugHelperUserState.CallNumber, debugHelperUserState.Stopwatch.Elapsed.TotalMilliseconds ) );
                }
            }
DebugHelper.DebugLoggingDbCommandInterceptor