Skip to content

Commit

Permalink
fix dependency injection
Browse files Browse the repository at this point in the history
  • Loading branch information
mgunnerud committed Nov 18, 2024
1 parent 5bdd4a3 commit 399fdf4
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ public static IServiceCollection AddIntegrationLayer(this IServiceCollection ser
services.AddHttpClient<ISystemRegisterClient, SystemRegisterClient>();
services.AddHttpClient<IAccessManagementClient, AccessManagementClient>();
services.AddHttpClient<IResourceRegistryClient, ResourceRegistryClient>();
services.AddHttpClient<IAccessManagementClient, AccessManagementClient>();
services.AddHttpClient<IRegisterClient, RegisterClient>();
services.AddHttpClient<IRequestClient, RequestClient>();
services.AddHttpClient<IChangeRequestClient, ChangeRequestClient>();

return services;
}
Expand All @@ -169,9 +172,7 @@ public static IServiceCollection AddCoreServices(this IServiceCollection service
services.AddTransient<ISystemUserService, SystemUserService>();
services.AddTransient<ISystemRegisterService, SystemRegisterService>();
services.AddTransient<IRequestService, RequestService>();
services.AddHttpClient<IAccessManagementClient, AccessManagementClient>();
services.AddHttpClient<IRegisterClient, RegisterClient>();
services.AddHttpClient<IRequestClient, RequestClient>();
services.AddTransient<IChangeRequestService, ChangeRequestService>();

return services;
}
Expand Down

0 comments on commit 399fdf4

Please sign in to comment.