BlueCollar.Service.Service.WatcherOperation C# (CSharp) Method

WatcherOperation() private method

Raises the Diagnostics.FileSystemWatcher's Operation event.
private WatcherOperation ( object sender, FileSystemEventArgs e ) : void
sender object The event sender.
e System.IO.FileSystemEventArgs The event arguments.
return void
        private void WatcherOperation(object sender, FileSystemEventArgs e)
        {
            lock (this.locker)
            {
                if (this.isRunning)
                {
                    Logger.Info("A change was detected in the configuration file at '{0}'. Refreshing the application list.", BlueCollarServiceSection.Section.ElementInformation.Source);
                    this.coordinator.StartAndRefresh(GetApplicationElements());
                }
            }
        }