internal void LoadQuotations(IDBRow overridedQuotationRow, Dictionary <Guid, QuotePolicy2QuotationDict> instrumentQuotations) { lock (_mutex) { Guid instrumentId = (Guid)overridedQuotationRow["InstrumentID"]; Instrument instrument = _instruments[instrumentId]; string ask = overridedQuotationRow["Ask"] == DBNull.Value ? null : (string)overridedQuotationRow["Ask"]; string bid = overridedQuotationRow["Bid"] == DBNull.Value ? null : (string)overridedQuotationRow["Bid"]; string high = overridedQuotationRow["High"] == DBNull.Value ? null : (string)overridedQuotationRow["High"]; string low = overridedQuotationRow["Low"] == DBNull.Value ? null : (string)overridedQuotationRow["Low"]; DateTime timestamp = (DateTime)overridedQuotationRow["Timestamp"]; Quotation quotation = Quotation.Create(instrumentId, ask, bid, high, low, timestamp, Settings.Setting.Default); Guid quotePolicyId = (Guid)overridedQuotationRow["QuotePolicyID"]; QuotePolicy2QuotationDict dict; if (!instrumentQuotations.TryGetValue(instrumentId, out dict)) { dict = new QuotePolicy2QuotationDict(); instrumentQuotations.Add(instrumentId, dict); } dict.Add(quotePolicyId, quotation); } }