mirror of
https://github.com/bitwarden/server.git
synced 2026-06-01 22:05:35 -05:00
25 lines
740 B
C#
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; }
|
|
}
|