2023-02-16 09:53:02 +01:00
|
|
|
|
using Domain.Config;
|
2023-02-12 19:12:26 +01:00
|
|
|
|
using Microsoft.Extensions.Options;
|
2023-02-09 10:25:42 +01:00
|
|
|
|
|
|
|
|
|
namespace Application.Game.Card;
|
|
|
|
|
|
|
|
|
|
public class CardDependencyAggregate : ICardDependencyAggregate
|
|
|
|
|
{
|
2023-02-12 19:12:26 +01:00
|
|
|
|
public CardDependencyAggregate(ICardDbContext cardDbContext, IMusicDbContext musicDbContext, IOptions<GameConfig> options)
|
2023-02-09 10:25:42 +01:00
|
|
|
|
{
|
|
|
|
|
CardDbContext = cardDbContext;
|
|
|
|
|
MusicDbContext = musicDbContext;
|
2023-02-12 19:12:26 +01:00
|
|
|
|
Options = options;
|
2023-02-09 10:25:42 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ICardDbContext CardDbContext { get; }
|
|
|
|
|
public IMusicDbContext MusicDbContext { get; }
|
2023-02-12 19:12:26 +01:00
|
|
|
|
|
|
|
|
|
public IOptions<GameConfig> Options { get; }
|
2023-02-09 10:25:42 +01:00
|
|
|
|
}
|