Пример #1
0
        public ProfitInfo(IMarketManager marketManager, INetworkInfo networkInfo, IPoolConfig poolConfig)
        {
            _logger = Log.ForContext <ProfitInfo>().ForContext("Component", poolConfig.Coin.Name);

            _poolConfig            = poolConfig;
            _networkInfo           = networkInfo;
            _marketManager         = marketManager;
            _marketManager.Update += OnMarketUpdate;
        }
Пример #2
0
        public ProfitInfo(IMarketManager marketManager, INetworkInfo networkInfo, IPoolConfig poolConfig)
        {
            _logger = Log.ForContext<ProfitInfo>().ForContext("Component", poolConfig.Coin.Name);

            _poolConfig = poolConfig;
            _networkInfo = networkInfo;
            _marketManager = marketManager;
            _marketManager.Update += OnMarketUpdate;
        }
Пример #3
0
 public CurrencyConverter(IMarketManager marketManager)
 {
     _marketManager = marketManager;
 }
Пример #4
0
 public MarketsController(IMapper mapper, IMarketManager manager)
 {
     _mapper  = mapper;
     _manager = manager;
 }