Exemple #1
0
        public static void tryToFixSourceCodeReferences(O2AssessmentData_OunceV6 oadO2AssessmentDataOunceV6)
        {
            PublicDI.log.debug("Trying To Fix Source Code References");
            SourceCodeMappings scmSourceCodeMappings = SourceCodeMappingsUtils.getSourceCodeMappings();

            foreach (SourceCodeMappingsMapping mMapping in scmSourceCodeMappings.Mapping)
            {
                fixAllFileReferencesOnAssessmentDataObject(oadO2AssessmentDataOunceV6, mMapping.replaceThisString,
                                                           mMapping.withThisString);
            }
        }
        static DI()
        {
            log        = PublicDI.log;
            reflection = new O2FormsReflectionASCX();
            config     = PublicDI.config;

            dFilteredFuntionSignatures = new Dictionary <string, FilteredSignature>();
            dFilesLines = new Dictionary <string, List <string> >();

            dO2Vars  = new Dictionary <string, object>();
            dRegExes = new Dictionary <string, Regex>();

            sourceCodeMappingFileName = "SourceCodeMappingsFile.xml";
            sourceCodeMappings        = SourceCodeMappingsUtils.getSourceCodeMappings();
            PathToGac = Path.Combine(Environment.GetEnvironmentVariable("windir") ?? "", "Assembly");//\\GAC_MSIL");
        }