Beispiel #1
0
        protected virtual bool SaveFieldDefinition(IFieldDefinition fieldDefinition)
        {
            var FieldDefinitionsBuffer = TelemetryFieldDefinitions.ToList();

            FieldDefinitionsBuffer.Add(fieldDefinition);

            if (!FieldDefinitionsListIsValid(FieldDefinitionsBuffer))
            {
                return(false);
            }

            DeleteFieldDefinition(fieldDefinition);

            TelemetryFieldDefinitions.Add(fieldDefinition);

            return(true);
        }
Beispiel #2
0
 protected virtual IList <IFieldDefinition> GetFieldDefinitions()
 {
     return(TelemetryFieldDefinitions.ToList());
 }