Beispiel #1
0
 private static void RegisterEventSource()
 {
     EventSourceInstaller.InstallSecurityEventSource(
         EventLogName,
         null,     //@"D:\Auditing\SampleApplication\SampleMessageFile.DLL",
         null,
         null,
         Assembly.GetEntryAssembly().Location,     //@"D:\Auditing\SampleApplication\Ogamat.AuditProvider.Examples.exe",
         false);
 }
Beispiel #2
0
        protected override void InternalProcessRecord()
        {
            TaskLogger.LogEnter();
            string installPath = ConfigurationContext.Setup.InstallPath;

            try
            {
                this.InstallMPAuditLog(installPath);
            }
            catch (InvalidOperationException)
            {
                EventSourceInstaller.UninstallSecurityEventSource("MSExchange Messaging Policies");
                this.InstallMPAuditLog(installPath);
            }
            TaskLogger.LogExit();
        }
Beispiel #3
0
 protected override void InternalProcessRecord()
 {
     TaskLogger.LogEnter();
     EventSourceInstaller.UninstallSecurityEventSource("MSExchange Messaging Policies");
     TaskLogger.LogExit();
 }
Beispiel #4
0
 private static void UnRegisterEventSource()
 {
     EventSourceInstaller.UninstallSecurityEventSource(EventLogName);
 }
Beispiel #5
0
 private void InstallMPAuditLog(string path)
 {
     EventSourceInstaller.InstallSecurityEventSource("MSExchange Messaging Policies", Path.Combine(path, "bin\\RulesAuditMsg.DLL"), null, null, Path.Combine(path, "bin\\EdgeTransport.exe"), false);
 }