Exemplo n.º 1
0
        private void onCirDataCompletion(object pProcess)
        {
            setControlsEnableState(true);
            var currentScanTarget = (IScanTarget)lbScanTargets.SelectedItem;
            var cirDataFile       = currentScanTarget.ApplicationFile + ".CirData";

            if (File.Exists(cirDataFile))
            {
                var cirData = CirLoad.loadFile(cirDataFile);
                //var cirData = CirLoad.loadSerializedO2CirDataObject(cirDataFile);
                O2Messages.setCirData(cirData);
            }
        }
Exemplo n.º 2
0
        public void createCirDataObject()
        {
            var      cirFactory = new CirFactory();
            ICirData cirData    = new CirData();

            DI.log.info("using assembly:{0} and O2_Kernel.dll", Assembly.GetExecutingAssembly().Location);
            cirFactory.processAssemblyDefinition(cirData, Assembly.GetExecutingAssembly().Location);
            cirFactory.processAssemblyDefinition(cirData, DI.config.ExecutingAssembly);
            Assert.That(cirData.dClasses_bySignature.Count > 0, "There were no classes in cirData object");
            Assert.That(cirData.dFunctions_bySignature.Count > 0, "There were no function in cirData object");
            O2Messages.setCirData(cirData);
            //CirFactoryUtils.showCirDataStats();
        }