Пример #1
0
        public PriceServiceHostFactory()
        {
            var priceSource = new PriceSource();

            Log.Info("Started Generator");

            _service = new PricingService(priceSource);
            Log.Info("Started Service");

            _cleanup.Add(priceSource);
        }
Пример #2
0
 public PricingService(PriceSource source)
 {
     _source = source;
 }