public MemberController(ICoinDeskClient coinDeskClient, MandarinDBContext dBContext, ILogger <MemberController> logger) { _coinDeskClient = coinDeskClient; _dbContext = dBContext; _logger = logger; }
public IncreaseBalanceJob(IServiceScopeFactory serviceScopeFactory, ICoinDeskClient coinDeskClient, ILogger <IncreaseBalanceJob> logger) { _dbContext = serviceScopeFactory.CreateScope().ServiceProvider.GetRequiredService <MandarinDBContext>(); _coinDeskClient = coinDeskClient; _logger = logger; }