コード例 #1
0
 public MigrateSummaryReportOperation(
     ISummaryReportRepository summaryReportRepository,
     ILogFactory logFactory)
 {
     _summaryReportRepository = summaryReportRepository;
     _log = logFactory.CreateLog(this);
 }
コード例 #2
0
 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);
 }