Skip to content

Commit

Permalink
Fix stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Aug 7, 2024
1 parent 67bb62d commit 83878d0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ namespace Shiny;

public static class EntityFrameworkExtensions
{
public static IServiceCollection AddDbContextAuditing<T>(this IServiceCollection services) where T : class, IContextInfoProvider
public static IServiceCollection AddDbContextAuditing<TContextProvider>(this IServiceCollection services) where TContextProvider : class, IContextInfoProvider
{
services.AddScoped<T>();
services.AddScoped<IContextInfoProvider, TContextProvider>();
services.AddScoped<AuditSaveChangesInterceptor>();
return services;
}
Expand Down

0 comments on commit 83878d0

Please sign in to comment.