コード例 #1
0
        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();
        }
コード例 #2
0
    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);
        }
    }