C# Class System.Data.SqlClient.SqlClientDiagnosticListenerExtensions

Extension methods on the DiagnosticListener class to log SqlCommand data
Show file Open project: dotnet/corefx

Public Methods

Method Description
WriteCommandAfter ( this @this, Guid operationId, SqlCommand sqlCommand, [ operation = "" ) : void
WriteCommandBefore ( this @this, SqlCommand sqlCommand, [ operation = "" ) : Guid
WriteCommandError ( this @this, Guid operationId, SqlCommand sqlCommand, Exception ex, [ operation = "" ) : void
WriteConnectionCloseAfter ( this @this, Guid operationId, Guid clientConnectionId, SqlConnection sqlConnection, [ operation = "" ) : void
WriteConnectionCloseBefore ( this @this, SqlConnection sqlConnection, [ operation = "" ) : Guid
WriteConnectionCloseError ( this @this, Guid operationId, Guid clientConnectionId, SqlConnection sqlConnection, Exception ex, [ operation = "" ) : void
WriteConnectionOpenAfter ( this @this, Guid operationId, SqlConnection sqlConnection, [ operation = "" ) : void
WriteConnectionOpenBefore ( this @this, SqlConnection sqlConnection, [ operation = "" ) : Guid
WriteConnectionOpenError ( this @this, Guid operationId, SqlConnection sqlConnection, Exception ex, [ operation = "" ) : void
WriteTransactionCommitAfter ( this @this, Guid operationId, IsolationLevel isolationLevel, SqlConnection connection, [ operation = "" ) : void
WriteTransactionCommitBefore ( this @this, IsolationLevel isolationLevel, SqlConnection connection, [ operation = "" ) : Guid
WriteTransactionCommitError ( this @this, Guid operationId, IsolationLevel isolationLevel, SqlConnection connection, Exception ex, [ operation = "" ) : void
WriteTransactionRollbackAfter ( this @this, Guid operationId, IsolationLevel isolationLevel, SqlConnection connection, string transactionName, [ operation = "" ) : void
WriteTransactionRollbackBefore ( this @this, IsolationLevel isolationLevel, SqlConnection connection, string transactionName, [ operation = "" ) : Guid
WriteTransactionRollbackError ( this @this, Guid operationId, IsolationLevel isolationLevel, SqlConnection connection, string transactionName, Exception ex, [ operation = "" ) : void

Method Details

WriteCommandAfter() public static method

public static WriteCommandAfter ( this @this, Guid operationId, SqlCommand sqlCommand, [ operation = "" ) : void
@this this
operationId Guid
sqlCommand SqlCommand
operation [
return void

WriteCommandBefore() public static method

public static WriteCommandBefore ( this @this, SqlCommand sqlCommand, [ operation = "" ) : Guid
@this this
sqlCommand SqlCommand
operation [
return Guid

WriteCommandError() public static method

public static WriteCommandError ( this @this, Guid operationId, SqlCommand sqlCommand, Exception ex, [ operation = "" ) : void
@this this
operationId Guid
sqlCommand SqlCommand
ex Exception
operation [
return void

WriteConnectionCloseAfter() public static method

public static WriteConnectionCloseAfter ( this @this, Guid operationId, Guid clientConnectionId, SqlConnection sqlConnection, [ operation = "" ) : void
@this this
operationId Guid
clientConnectionId Guid
sqlConnection SqlConnection
operation [
return void

WriteConnectionCloseBefore() public static method

public static WriteConnectionCloseBefore ( this @this, SqlConnection sqlConnection, [ operation = "" ) : Guid
@this this
sqlConnection SqlConnection
operation [
return Guid

WriteConnectionCloseError() public static method

public static WriteConnectionCloseError ( this @this, Guid operationId, Guid clientConnectionId, SqlConnection sqlConnection, Exception ex, [ operation = "" ) : void
@this this
operationId Guid
clientConnectionId Guid
sqlConnection SqlConnection
ex Exception
operation [
return void

WriteConnectionOpenAfter() public static method

public static WriteConnectionOpenAfter ( this @this, Guid operationId, SqlConnection sqlConnection, [ operation = "" ) : void
@this this
operationId Guid
sqlConnection SqlConnection
operation [
return void

WriteConnectionOpenBefore() public static method

public static WriteConnectionOpenBefore ( this @this, SqlConnection sqlConnection, [ operation = "" ) : Guid
@this this
sqlConnection SqlConnection
operation [
return Guid

WriteConnectionOpenError() public static method

public static WriteConnectionOpenError ( this @this, Guid operationId, SqlConnection sqlConnection, Exception ex, [ operation = "" ) : void
@this this
operationId Guid
sqlConnection SqlConnection
ex Exception
operation [
return void

WriteTransactionCommitAfter() public static method

public static WriteTransactionCommitAfter ( this @this, Guid operationId, IsolationLevel isolationLevel, SqlConnection connection, [ operation = "" ) : void
@this this
operationId Guid
isolationLevel IsolationLevel
connection SqlConnection
operation [
return void

WriteTransactionCommitBefore() public static method

public static WriteTransactionCommitBefore ( this @this, IsolationLevel isolationLevel, SqlConnection connection, [ operation = "" ) : Guid
@this this
isolationLevel IsolationLevel
connection SqlConnection
operation [
return Guid

WriteTransactionCommitError() public static method

public static WriteTransactionCommitError ( this @this, Guid operationId, IsolationLevel isolationLevel, SqlConnection connection, Exception ex, [ operation = "" ) : void
@this this
operationId Guid
isolationLevel IsolationLevel
connection SqlConnection
ex Exception
operation [
return void

WriteTransactionRollbackAfter() public static method

public static WriteTransactionRollbackAfter ( this @this, Guid operationId, IsolationLevel isolationLevel, SqlConnection connection, string transactionName, [ operation = "" ) : void
@this this
operationId Guid
isolationLevel IsolationLevel
connection SqlConnection
transactionName string
operation [
return void

WriteTransactionRollbackBefore() public static method

public static WriteTransactionRollbackBefore ( this @this, IsolationLevel isolationLevel, SqlConnection connection, string transactionName, [ operation = "" ) : Guid
@this this
isolationLevel IsolationLevel
connection SqlConnection
transactionName string
operation [
return Guid

WriteTransactionRollbackError() public static method

public static WriteTransactionRollbackError ( this @this, Guid operationId, IsolationLevel isolationLevel, SqlConnection connection, string transactionName, Exception ex, [ operation = "" ) : void
@this this
operationId Guid
isolationLevel IsolationLevel
connection SqlConnection
transactionName string
ex Exception
operation [
return void