Skip to content

Commit bb8015b

Browse files
committed
Fix: Naming
1 parent edbe949 commit bb8015b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CodeOfChaos.Types.DataSeeder/ServiceCollectionExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ public static IServiceCollection AddOneTimeDataSeeder<TDataSeeder>(this IService
1919
where TDataSeeder : class, IDataSeederService, IHostedService
2020
=> services.AddHostedService(implementationFactory);
2121

22-
public static IServiceCollection AddOneTimeDataSeeder<TDataSeeder>(this IServiceCollection services, Action<TDataSeeder> configure)
22+
public static IServiceCollection AddOneTimeDataSeeder<TDataSeeder>(this IServiceCollection services, Action<TDataSeeder> configureSeeder)
2323
where TDataSeeder : class, IDataSeederService, IHostedService {
2424

2525
services.TryAddEnumerable(
2626
ServiceDescriptor.Singleton<IHostedService, TDataSeeder>(provider
2727
=> {
2828
var seeder = ActivatorUtilities.CreateInstance<TDataSeeder>(provider);
29-
configure(seeder);
29+
configureSeeder(seeder);
3030
return seeder;
3131
}
3232
)
3333
);
3434
return services;
3535
}
3636

37-
public static IServiceCollection AddOneTimeDataSeeder(this IServiceCollection services, Action<OneTimeDataSeederService> configure)
38-
=> AddOneTimeDataSeeder<OneTimeDataSeederService>(services, configure);
37+
public static IServiceCollection AddOneTimeDataSeeder(this IServiceCollection services, Action<OneTimeDataSeederService> configureSeeder)
38+
=> AddOneTimeDataSeeder<OneTimeDataSeederService>(services, configureSeeder);
3939
}

0 commit comments

Comments
 (0)