コード例 #1
0
        public void SentPrices(Dictionary <ObjectId, double> prices)
        {
            string str = JsonConvert.SerializeObject(prices);

            _logger.Info("{0}", str);

            Task.Run(() => Kafka.Producer(str));
        }
コード例 #2
0
        public AssetExpensesManagerImpl(Mongo mongo, Kafka kafka)
        {
            this._mongo = mongo;
            this._totalFactoredVolumeOfAssets = _mongo.GetTotalFactoredVolumeOfAssets();
            this._totalAmountDue = _mongo.GetTotalAmountDue();
            this._kafka          = kafka;

            kafka.CmdReceived += this.OnCmdReceived;

            _logger.Info("Total amount due: {0}", _totalAmountDue);
            _logger.Info("_totalFactoredVolumeOfAssets = {0}", _totalFactoredVolumeOfAssets);
            CalculateBasePrice();
        }