Beispiel #1
0
        public FXCMRatesService(ILoggerWrapper wrapper, IFXCMRatesParser parser)
        {
            _wrapper = wrapper;
            _parser  = parser;

            _url = ConfigurationManager.AppSettings["FXCMRatesUrl"];

            _cts     = new CancellationTokenSource();
            _factory = new TaskFactory(_cts.Token);

            StartProcessing();
        }
		public FXCMRatesService(ILoggerWrapper wrapper, IFXCMRatesParser parser)
		{
			_wrapper = wrapper;
			_parser = parser;

			_url = ConfigurationManager.AppSettings["FXCMRatesUrl"];

			_cts = new CancellationTokenSource();
			_factory = new TaskFactory(_cts.Token);

			StartProcessing();
		}