You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 20, 2025. It is now read-only.
// public static IServiceCollection AddDbContextQueryLogging<T>(this IServiceCollection services, TimeSpan minLogDuration) where T : class, IContextInfoProvider
34
+
// {
35
+
// services.AddScoped<T>();
36
+
// services.AddScoped(sp =>
37
+
// {
38
+
// var contextInfo = sp.GetRequiredService<T>();
39
+
// return new QueryLogDbCommandInterceptor(contextInfo, minLogDuration);
40
+
// });
41
+
// return services;
42
+
// }
43
+
//
44
+
//
45
+
// public static IServiceCollection AddDbContextQueryLogging(
46
+
// this IServiceCollection services,
47
+
// IContextInfoProvider contextProvider,
48
+
// TimeSpan minLogDuration
49
+
// ) => services.AddScoped(_ => new QueryLogDbCommandInterceptor(contextProvider, minLogDuration));
50
+
//
51
+
//
52
+
// public static void UseQueryLogging(this DbContextOptionsBuilder builder, IServiceProvider scope)
53
+
// {
54
+
// var interceptor = scope.GetRequiredService<QueryLogDbCommandInterceptor>();
0 commit comments