Пример #1
0
 public TradeService(
     [KeyFilter("InternalTradeRepositoryAzure")]
     IInternalTradeRepository internalTradeRepository,
     [KeyFilter("InternalTradeRepositoryPostgres")]
     IInternalTradeRepository internalTradeRepositoryPostgres,
     [KeyFilter("ExternalTradeRepositoryAzure")]
     IExternalTradeRepository externalTradeRepository,
     [KeyFilter("ExternalTradeRepositoryPostgres")]
     IExternalTradeRepository externalTradeRepositoryPostgres,
     ILogFactory logFactory)
 {
     _internalTradeRepository         = internalTradeRepository;
     _internalTradeRepositoryPostgres = internalTradeRepositoryPostgres;
     _externalTradeRepository         = externalTradeRepository;
     _externalTradeRepositoryPostgres = externalTradeRepositoryPostgres;
     _log = logFactory.CreateLog(this);
 }
Пример #2
0
 public InternalTradeService(IInternalTradeRepository internalTradeRepository)
 {
     _internalTradeRepository = internalTradeRepository;
 }