📄 MatDenDagen/Infrastructure/Storage/StorageServiceExtensions.cs
using System;
using MatDenDagen.Infrastructure.Storage.BlobStorage;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;

namespace MatDenDagen.Infrastructure.Storage;

public static class StorageServiceExtensions
{
    public static IServiceCollection AddStorageServices(this IServiceCollection services)
    {
        services.TryAddSingleton(TimeProvider.System);

        services.AddBlobStorageOptions().AddTransient<BlobStorageService>();

        return services;
    }
}