コード例 #1
0
        public void Initialize(IObservable <PriceDto> priceStream, ICurrencyPair currencyPair)
        {
            _loggerFactory = new DebugLoggerFactory();
            var pricingServiceClient = new WatchPricingServiceClient(priceStream);
            var priceFactory         = new PriceFactory(new WatchExecutionRepository(), new PriceLatencyRecorder());
            var priceRepository      = new PriceRepository(pricingServiceClient, priceFactory, _loggerFactory);

            PriceStream = priceRepository.GetPriceStream(currencyPair);
        }