<PackageReference Include="Microsoft.Data.SqlClient.Extensions.Logging" Version="1.0.0-preview1.26064.3" />

Microsoft.Data.SqlClient.SqlClientEventScope

public struct SqlClientEventScope
A disposable scope for general event tracing. Automatically leaves the scope when disposed.
public SqlClientEventScope(long scopeID)

Initializes a new instance of the SqlClientEventScope struct.

public static SqlClientEventScope Create<T0>(string message, T0 args0)

Creates a new event scope with one formatted argument.

public static SqlClientEventScope Create<T0, T1>(string message, T0 args0, T1 args1)

Creates a new event scope with two formatted arguments.

public static SqlClientEventScope Create(string className, string memberName = "")

Creates a new event scope for a class with the calling member name.

public static SqlClientEventScope Create(long scopeId)

Creates a new event scope with a pre-existing scope identifier.

public void Dispose()

Disposes the scope, leaving the event scope if the scope ID is non-zero.