using Domain.Config; namespace Application.Game.Card; public abstract class CardRequestHandlerBase: IRequestHandlerWrapper where TIn : IRequestWrapper { protected ICardDbContext CardDbContext { get; } protected IMusicDbContext MusicDbContext { get; } protected GameConfig Config { get; } public CardRequestHandlerBase(ICardDependencyAggregate aggregate) { CardDbContext = aggregate.CardDbContext; MusicDbContext = aggregate.MusicDbContext; Config = aggregate.Options.Value; } public abstract Task> Handle(TIn request, CancellationToken cancellationToken); }