Changes on config and DI

This commit is contained in:
2026-03-19 17:22:27 +01:00
parent d1fd6fb9a0
commit 23852709cb
9 changed files with 134 additions and 9 deletions
@@ -7,7 +7,7 @@ namespace Musify.Infrastructure.Storage
{
public static class StorageDependencyInjection
{
public static void AddStorageHandler(this IServiceCollection serviceDescriptors)
public static IServiceCollection AddStorageHandler(this IServiceCollection serviceDescriptors)
{
serviceDescriptors.AddScoped<IAmazonS3>(serviceProvider =>
{
@@ -22,6 +22,8 @@ namespace Musify.Infrastructure.Storage
} );
serviceDescriptors.AddScoped<IStorageHandler, StorageHandler>();
return serviceDescriptors;
}
}
}