Click or drag to resize

DbCommandInterceptor Class

Intercepts DbCommands and records them in new Subsegments.
Inheritance Hierarchy
SystemObject
  Amazon.XRay.Recorder.Handlers.SqlServerDbCommandInterceptor

Namespace:  Amazon.XRay.Recorder.Handlers.SqlServer
Assembly:  AWSXRayRecorder.Handlers.SqlServer (in AWSXRayRecorder.Handlers.SqlServer.dll) Version: 2.11.0+018bfa65877dd72e346735bad4d7ad46f217da09
Syntax
C#
public class DbCommandInterceptor : IDbCommandInterceptor

The DbCommandInterceptor type exposes the following members.

Constructors
  NameDescription
Public methodDbCommandInterceptor
Initializes a new instance of the DbCommandInterceptor class
Top
Methods
  NameDescription
Protected methodCollectSqlInformation
Records the SQL information on the current subsegment,
Public methodCode exampleInterceptTResult
Begins a new Subsegment, executes the provided operation, and records the request in the "sql" member of the subsegment.
Public methodCode exampleInterceptAsyncTResult
Begins a new Subsegment, executes the provided async operation, and records the request in the "sql" member of the subsegment.
Top
See Also