C# Class Microsoft.ApplicationInsights.DependencyCollector.Implementation.FrameworkSqlProcessing

Inheritance: IDisposable
显示文件 Open project: Microsoft/ApplicationInsights-dotnet-server Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
OnBeginExecuteCallback ( long id, string dataSource, string database, string commandText ) : void

On begin callback from Framework event source.

OnEndExecuteCallback ( long id, bool success, bool synchronous, int sqlExceptionNumber ) : void

On end callback from Framework event source.

Private Methods

Method Description
FrameworkSqlProcessing ( Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration, Microsoft.ApplicationInsights.DependencyCollector.Implementation.Operation.CacheBasedOperationHolder telemetryTupleHolder ) : System

Initializes a new instance of the FrameworkSqlProcessing class.

GetResourceName ( string dataSource, string database, string commandText ) : string

Gets SQL command resource name.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

OnBeginExecuteCallback() public method

On begin callback from Framework event source.
public OnBeginExecuteCallback ( long id, string dataSource, string database, string commandText ) : void
id long Identifier of SQL connection object.
dataSource string Data source name.
database string Database name.
commandText string Command text.
return void

OnEndExecuteCallback() public method

On end callback from Framework event source.
public OnEndExecuteCallback ( long id, bool success, bool synchronous, int sqlExceptionNumber ) : void
id long Identifier of SQL connection object.
success bool Indicate whether operation completed successfully.
synchronous bool Indicates whether operation was called synchronously or asynchronously.
sqlExceptionNumber int SQL exception number.
return void