public void SetParamaters(TableInfo tableInfo, IList <CustomEntity> customEntities, IList <FieldInfo> fields, string nameOfUniqueField) { _TableInfo = tableInfo; _CustomEntities = customEntities; _AllFields = fields; _NameOfUniqueField = nameOfUniqueField; //SavedEntities = new EntityCollectionNonGeneric(EntityFactoryFactory.GetFactory(GeneralEntityFactory.Create(TypeOfEntity).GetType())); _DPFunction = new DataProcessingFunction(); }
public void RegisterPort(string type, string device, DataProcessingFunction f) { if (portFunctions == null) { portFunctions = new Dictionary <string, DataProcessingFunction>(); } string portName = $"{type}/{device}"; if (!portFunctions.ContainsKey(portName)) { portFunctions.Add(portName, f); } }