C# Class System.Data.SqlClient.SqlClientDiagnosticListenerExtensions

Extension methods on the DiagnosticListener class to log SqlCommand data
Afficher le fichier Open project: dotnet/corefx

Méthodes publiques

Méthode 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 méthode

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

WriteCommandBefore() public static méthode

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

WriteCommandError() public static méthode

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

WriteConnectionCloseAfter() public static méthode

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

WriteConnectionCloseBefore() public static méthode

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

WriteConnectionCloseError() public static méthode

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 [
Résultat void

WriteConnectionOpenAfter() public static méthode

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

WriteConnectionOpenBefore() public static méthode

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

WriteConnectionOpenError() public static méthode

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

WriteTransactionCommitAfter() public static méthode

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

WriteTransactionCommitBefore() public static méthode

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

WriteTransactionCommitError() public static méthode

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 [
Résultat void

WriteTransactionRollbackAfter() public static méthode

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 [
Résultat void

WriteTransactionRollbackBefore() public static méthode

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

WriteTransactionRollbackError() public static méthode

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 [
Résultat void