FileChangesMonitor.cs (34)
41internal FileAction Action; // the action
44internal FileChangeEvent(FileAction action, string fileName) {
225FileAction _lastAction; // last action that ocurred on this file
246internal FileAction LastAction {
398delegate void NativeFileChangeNotification(FileAction action, [In, MarshalAs(UnmanagedType.LPWStr)] string fileName, long ticks);
495void OnFileChange(FileAction action, string fileName, long ticks) {
513if (action == FileAction.Dispose) {
538internal readonly FileAction Action;
540internal NotificationQueueItem(FileChangeEventHandler callback, FileAction action, string filename) {
973internal void OnFileChange(FileAction action, string fileName, DateTime utcCompletion) {
989FileAction lastAction = FileAction.Error;
1006if (action == FileAction.Error || action == FileAction.Overwhelming) {
1009Debug.Assert(action != FileAction.Overwhelming, "action != FileAction.Overwhelming");
1011if (action == FileAction.Overwhelming) {
1057if (action == FileAction.Removed || action == FileAction.RenamedOldName) {
1108if (action == FileAction.Error) {
1117if (!isSpecialDirectoryChange && fileName != null && action == FileAction.Modified) {
1133if (_ignoreSubdirChange && (action == FileAction.Removed || action == FileAction.RenamedOldName) && fileName != null) {
1174if ((action != FileAction.Added && action != FileAction.Modified) || fadNew == null) {
1184else if (action == FileAction.Added) {
1195Debug.Assert(action == FileAction.Modified, "action == FileAction.Modified");
1204isSignificantChange = (lastAction != FileAction.Modified);
1432internal static string GenerateErrorMessage(FileAction action, String fileName = null) {
1434if (action == FileAction.Overwhelming) {
1437else if (action == FileAction.Error) {
2051(e.Action == FileAction.Error || e.Action == FileAction.Overwhelming || e.Action == FileAction.RenamedOldName || e.Action == FileAction.Removed)) {