private TrueFXRatesProvider(IHubConnectionContext clients) { _wrapper = DependencyFactory.Container.Resolve<ILoggerWrapper>(); _ratesService = DependencyFactory.Container.Resolve<ITrueFXRatesService>(); _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 TrueFXRatesProvider(IHubConnectionContext clients) { _wrapper = DependencyFactory.Container.Resolve <ILoggerWrapper>(); _ratesService = DependencyFactory.Container.Resolve <ITrueFXRatesService>(); _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; }