Files
immich-to-slideshow/src/ImmichToSlideshow/DependencyInjection/ServiceCollectionExtensions.cs
mikep@034E8FF1ED4D1F6 c4d42d79a0 DigiKam4 Archive
Change to only need the one json file and changed AppSettings to not need a binder file

Editorconfig for no new line before open braces

Nuget package bumps

Database lowest-version-history
2025-07-27 16:03:47 -07:00

14 lines
412 B
C#

using ImmichToSlideshow.Models;
using ImmichToSlideshow.Services;
namespace ImmichToSlideshow.DependencyInjection;
public static class ServiceCollectionExtensions {
public static IServiceCollection AddServices(this IServiceCollection services, AppSettings appSettings) {
_ = services.AddScoped<AssetService>();
_ = services.AddSingleton(_ => appSettings);
return services;
}
}