public QuotationManager()
 {
     this._ConfigMetadata = new ConfigMetadata();
     this._SourceController = new SourceController();
     this._LastQuotationManager = new LastQuotationManager();
 }
        // InstrumentId, Dictionary(SourceId - InstrumentSourceRelation)
        public SourceInstrument(int instrumentId, Dictionary<int, InstrumentSourceRelation> relations, SourceController sourceController)
        {
            this._SourceController = sourceController;
            this._Relations = relations;
            this.MakeActiveSource();

            this._Instrument = MainService.QuotationManager.ConfigMetadata.Instruments[instrumentId];
            if (this._Instrument.IsSwitchUseAgio.Value)
            {
                this._AgioCalculator = new AgioCalculator(this._Instrument.AgioSeconds.Value, this._Instrument.LeastTicks.Value, relations.Keys);
            }
            TimeSpan inactiveTimeSpan = TimeSpan.FromSeconds(this._Instrument.InactiveTime.Value);
            this._PriceInactiveCheckTimer = new Timer(this.CheckPriceInactiveTime, null, inactiveTimeSpan, inactiveTimeSpan);
            this._LastActiveTime = DateTime.Now;
        }