コード例 #1
0
        public bool UpdateResource(Configuration config)
        {
            if (myCommMainCtrl.IsOpen)
            {
                return(false);
            }

            myPassNumber       = config.PassNumber;
            myCommInstructions = new CommInstructions(config.RmRange);
            myCommMainCtrl     = new CommMainCtrl(config);

            return(true);
        }
コード例 #2
0
        public BusinessLogic()
        {
            var config = new Configuration();

            myPassNumber       = config.PassNumber;
            myCommInstructions = new CommInstructions(config.RmRange);
            myCommMainCtrl     = new CommMainCtrl(config);

            myTaskQueue = new ConcurrentQueue <CommunicationTasks>();

            LogConfigParameter  = new List <DataParameter>();
            DumpConfigParameter = new DataParameter();

            mylogData = new ConcurrentQueue <LogData>();

            TaskState = CommunicationTasks.Nothing;

            BypassRequest  = new ConcurrentQueue <string>();
            BypassResponse = new ConcurrentQueue <string>();
        }