예제 #1
0
 public MigrateSummaryReportOperation(
     ISummaryReportRepository summaryReportRepository,
     ILogFactory logFactory)
 {
     _summaryReportRepository = summaryReportRepository;
     _log = logFactory.CreateLog(this);
 }
 public SummaryReportService(
     ISummaryReportRepository summaryReportRepository,
     [KeyFilter("PositionRepositoryPostgres")] IPositionRepository positionRepositoryPostgres,
     IOpenPositionRepository openPositionRepository,
     IInstrumentService instrumentService,
     ICrossRateInstrumentService crossRateInstrumentService,
     ILogFactory logFactory)
 {
     _summaryReportRepository    = summaryReportRepository;
     _positionRepositoryPostgres = positionRepositoryPostgres;
     _openPositionRepository     = openPositionRepository;
     _instrumentService          = instrumentService;
     _crossRateInstrumentService = crossRateInstrumentService;
     _cache = new InMemoryCache <SummaryReport>(CacheKey, false);
     _log   = logFactory.CreateLog(this);
 }
예제 #3
0
 public SummaryReportService(ISummaryReportRepository summaryReportRepository, ILogFactory logFactory)
 {
     _summaryReportRepository = summaryReportRepository;
     _cache = new InMemoryCache <SummaryReport>(summaryReport => summaryReport.AssetPairId, false);
 }