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); }
public InternalTradeService(IInternalTradeRepository internalTradeRepository) { _internalTradeRepository = internalTradeRepository; }