Files
server/util/Seeder/Options/SeederDependencies.cs
2026-05-14 05:59:54 +02:00

25 lines
740 B
C#

using AutoMapper;
using Bit.Core.Entities;
using Bit.Infrastructure.EntityFramework.Repositories;
using Bit.Seeder.Pipeline;
using Bit.Seeder.Services;
using Microsoft.AspNetCore.Identity;
namespace Bit.Seeder.Options;
/// <summary>
/// Bundles the infrastructure services that all recipes require.
/// </summary>
public sealed record SeederDependencies(
DatabaseContext Db,
IMapper Mapper,
IPasswordHasher<User> PasswordHasher,
IManglerService ManglerService)
{
/// <summary>
/// Optional progress reporter. When null, the pipeline runs silently.
/// Set via <c>with</c> expression from UI-facing callers (e.g., CLI).
/// </summary>
public IProgress<SeederProgressEvent>? Progress { get; init; }
}