feat(fundamentals): dynamic settings, IFinlyticLogger, live log streaming, and EF migration
This commit is contained in:
@@ -10,6 +10,7 @@ using FinlyticCore.Dtos.Yahoo;
|
||||
using FinlyticCore.Models.Settings;
|
||||
using FinlyticCore.Services;
|
||||
using FinlyticCore.Services.TradeRepublic;
|
||||
using FinlyticCore.Services.Yahoo;
|
||||
using FinlyticFundamentals.Database;
|
||||
using FinlyticFundamentals.Entities;
|
||||
using FinlyticFundamentals.Util;
|
||||
@@ -39,13 +40,13 @@ public class FundamentalsDbService : IFundamentalsDbService
|
||||
private readonly IServiceScopeFactory _scopeFactory;
|
||||
private readonly IYahooFinanceScraper _scraper;
|
||||
private readonly ITradeRepublicService _tradeRepublicService;
|
||||
private readonly IFinlyticLogger<FundamentalsDbService, FundamentalsDbContext> _finlyticLogger;
|
||||
private readonly IFinlyticLogger<FundamentalsDbService> _finlyticLogger;
|
||||
|
||||
public FundamentalsDbService(
|
||||
IServiceScopeFactory scopeFactory,
|
||||
IYahooFinanceScraper scraper,
|
||||
ITradeRepublicService tradeRepublicService,
|
||||
IFinlyticLogger<FundamentalsDbService, FundamentalsDbContext> finlyticLogger)
|
||||
IFinlyticLogger<FundamentalsDbService> finlyticLogger)
|
||||
{
|
||||
_scopeFactory = scopeFactory;
|
||||
_scraper = scraper;
|
||||
@@ -71,7 +72,7 @@ public class FundamentalsDbService : IFundamentalsDbService
|
||||
{
|
||||
using var scope = _scopeFactory.CreateScope();
|
||||
var context = scope.ServiceProvider.GetRequiredService<FundamentalsDbContext>();
|
||||
var settingsService = scope.ServiceProvider.GetRequiredService<ISettingsService<FundamentalsDbContext>>();
|
||||
var settingsService = scope.ServiceProvider.GetRequiredService<ISettingsService>();
|
||||
|
||||
// 1. Dynamic Settings lesen
|
||||
bool allowForceRefresh =
|
||||
|
||||
Reference in New Issue
Block a user