<PackageReference Include="Microsoft.Data.SqlClient.Internal.Logging" Version="7.1.0-preview2.26190.5" />

Microsoft.Data.SqlClient.Internal.SqlClientEventScope

public struct SqlClientEventScope
A disposable scope for general event tracing. Automatically leaves the scope when disposed.
namespace Microsoft.Data.SqlClient.Internal { public readonly ref struct SqlClientEventScope { public SqlClientEventScope(long scopeID); public void Dispose(); public static SqlClientEventScope Create<[System.Runtime.CompilerServices.Nullable(2)] T0>(string message, T0 args0); public static SqlClientEventScope Create<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1>(string message, T0 args0, T1 args1); public static SqlClientEventScope Create(string className, string memberName = ""); public static SqlClientEventScope Create(long scopeId); } }