Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
		public FXCMRatesService(ILoggerWrapper wrapper, IFXCMRatesParser parser)
		{
			_wrapper = wrapper;
			_parser = parser;

			_url = ConfigurationManager.AppSettings["FXCMRatesUrl"];

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

			StartProcessing();
		}