private FXCMRatesProvider(IHubConnectionContext clients) { _wrapper = DependencyFactory.Container.Resolve<ILoggerWrapper>(); _ratesService = DependencyFactory.Container.Resolve<IFXCMRatesService>(); _ratesService.StartProcessing(); _customerInfo = DependencyFactory.Container.Resolve<ICustomerInfoProvider>(); _spreadProvider = DependencyFactory.Container.Resolve<IRatesSpreadService>(); _updateInterval = TimeSpan.FromMilliseconds(Int32.Parse(ConfigurationManager.AppSettings["UpdateInterval"])); _timers = new Dictionary<string, Timer>(); Clients = clients; }
private FXCMRatesProvider(IHubConnectionContext clients) { _wrapper = DependencyFactory.Container.Resolve <ILoggerWrapper>(); _ratesService = DependencyFactory.Container.Resolve <IFXCMRatesService>(); _ratesService.StartProcessing(); _customerInfo = DependencyFactory.Container.Resolve <ICustomerInfoProvider>(); _spreadProvider = DependencyFactory.Container.Resolve <IRatesSpreadService>(); _updateInterval = TimeSpan.FromMilliseconds(Int32.Parse(ConfigurationManager.AppSettings["UpdateInterval"])); _timers = new Dictionary <string, Timer>(); Clients = clients; }