예제 #1
0
        public static void ProcessAudit(string[] auditJob)
        {
            string[] auditID     = auditJob[0].Split(new string[] { ": " }, 2, StringSplitOptions.RemoveEmptyEntries);
            int      auditTypeID = int.Parse(auditID[1]);

            if (auditTypeID == 1)
            {
                StartWindAuditor(auditJob[1]);
            }
            else if (auditTypeID == 2)
            {
                winaudits.FileFetch audit = winaudits.FileFetch.GetFileFetch(auditJob[1]);
                winaudits.InsertQueries.InsertFileFetch(audit);
            }
            else if (auditTypeID == 3)
            {
                winaudits.RegistryFetch audit = winaudits.RegistryFetch.GetFileFetch(auditJob[1]);
                winaudits.InsertQueries.InsertRegFetch(audit);
            }
        }
예제 #2
0
        public static FileFetch GetFileFetch(string filefetchaudit)
        {
            FileFetch filefetch = JsonConvert.DeserializeObject <FileFetch>(filefetchaudit);

            return(filefetch);
        }