internal ElementHistoricSecurityData(string securityName, List<string> badFields, Dictionary<DateTime, Dictionary<string, object>> fieldData, int sequenceNumber)
        {
            this._isSecurityError = Types.Rules.IsSecurityError(securityName);

            //remove bad field names from the dictionary
            if (badFields.Count == 0)
                this._elmFieldExceptions = null;
            else
                this._elmFieldExceptions = new ElementHistoricFieldExceptionsArray(badFields);

            this._elmSecurityName = new ElementHistoricString("security", securityName);
            this._elmSequenceNumber = new ElementHistoricInt("sequenceNumber", sequenceNumber);
            if (this._isSecurityError)
            {
                this._elmSecError = new ElementHistoricSecurityError(securityName);
                this._elmFieldDataArray = null;
            }
            else
            {
                this._elmSecError = null;
                this._elmFieldDataArray = new ElementHistoricFieldDataArray(fieldData);
            }
        }
Ejemplo n.º 2
0
 internal ElementHistoricSecurityData(string securityName, Dictionary <DateTime, Dictionary <string, object> > fieldData, int sequenceNumber)
 {
     this._elmSecurityName   = new ElementHistoricString("security", securityName);
     this._elmFieldDataArray = new ElementHistoricFieldDataArray(fieldData);
     this._elmSequenceNumber = new ElementHistoricInt("sequenceNumber", sequenceNumber);
 }