mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
17 lines
675 B
C#
17 lines
675 B
C#
using Features.ImageUploads.Repository;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Features.ImageUploads.DependencyInjection;
|
|
|
|
/// <summary>Registers the services required by the PhotoUpload feature.</summary>
|
|
public static class FeaturesPhotoUploadServiceCollectionExtensions
|
|
{
|
|
/// <summary>Registers <see cref="IPhotoUploadRepository" /> and its implementation.</summary>
|
|
/// <returns><paramref name="services" />, for chaining.</returns>
|
|
public static IServiceCollection AddFeaturesPhotoUpload(this IServiceCollection services)
|
|
{
|
|
services.AddScoped<IPhotoUploadRepository, PhotoUploadRepository>();
|
|
return services;
|
|
}
|
|
}
|