Esempio n. 1
0
        private DataLoadInfo StartAudit()
        {
            DataLoadInfo dataLoadInfo;

            _logManager = _configuration.GetExplicitLoggingDatabaseServerOrDefault();

            try
            {
                //populate DataLoadInfo object (Audit)
                dataLoadInfo = new DataLoadInfo(ExecuteDatasetExtractionSource.AuditTaskName,
                                                Process.GetCurrentProcess().ProcessName,
                                                _configuration.GetLoggingRunName(),
                                                "", false, _logManager.Server);
            }
            catch (Exception e)
            {
                throw new Exception("Problem occurred trying to create Logging Component:" + e.Message + " (check user has access to " + _logManager.Server + " and that the DataLoadTask '" + ExecuteDatasetExtractionSource.AuditTaskName + "' exists)", e);
            }

            return(dataLoadInfo);
        }