New releases file. Updated filtering logic for attributes to prevent duplicate events.

This commit is contained in:
Patrick Fic
2020-12-03 17:18:04 -08:00
parent 3324f4c3b4
commit 2fd953a526
7 changed files with 11 additions and 24 deletions

View File

@@ -35,10 +35,10 @@ namespace BodyshopPartner.Utils
IncludeSubdirectories = false;
// Eliminate duplicates when timestamp doesn't change
Filter = "*.env";
NotifyFilter = NotifyFilters.FileName | NotifyFilters.LastWrite;
//NotifyFilter = NotifyFilters.FileName | NotifyFilters.Size; // The default also has NotifyFilters.LastWrite
// NotifyFilter = NotifyFilters.FileName | NotifyFilters.LastWrite;
NotifyFilter = NotifyFilters.Attributes; // The default also has NotifyFilters.LastWrite
EnableRaisingEvents = true;
Created += Watcher_Created;
//Created += Watcher_Created;
Changed += Watcher_Changed;
//Deleted += Watcher_Deleted;
//Renamed += Watcher_Renamed;

View File

@@ -25,7 +25,7 @@ namespace BodyshopPartner.Utils
try
{
Process.Start(psi).WaitForExit();
logger.Debug("Attempting to add HTTP Exclusion for web-server");
logger.Debug("Added web-server port exclusion.");
return true;
}
catch (Exception Ex)