示例#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;
 }