示例#1
0
文件: Auditor.cs 项目: blinds52/nhind
        private static string HostLocation()
        {
            string programData = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
            string myDataPath  = Path.Combine(programData, Path.Combine(@"DirectProject\auditors", AuditorSettings.ConfigFile));

            EventLogHelper.WriteInformation("Health.Direct.Audit", myDataPath);
            return(myDataPath);
        }
示例#2
0
 internal static void WriteEventLog(string message)
 {
     EventLogHelper.WriteInformation(EventLogSourceName, message);
 }
示例#3
0
 private static Type LoadType(string typeName)
 {
     EventLogHelper.WriteInformation("Health.Direct", "Load Type:: " + typeName);
     return(System.Type.GetType(typeName, true));
 }