fixes extension method
All checks were successful
piwigodotnet/pipeline/head This commit looks good

This commit is contained in:
Philipp Häfelfinger 2023-07-14 15:41:05 +02:00
parent a7fedae308
commit 8d0c7a351d

View File

@ -8,7 +8,7 @@ namespace Piwigo.Client.DependencyInjection;
public static class ServiceCollectionExtension public static class ServiceCollectionExtension
{ {
public static void AddPiwigoClient(this ServiceCollection services, IPiwigoConfiguration configuration) public static void AddPiwigoClient(this IServiceCollection services, IPiwigoConfiguration configuration)
{ {
services.AddSingleton(configuration); services.AddSingleton(configuration);
services.AddScoped<IPiwigoContext, PiwigoContext>(); services.AddScoped<IPiwigoContext, PiwigoContext>();