コード例 #1
0
        public static void RaiseAddedOrUpdated(
            this IFileSystemChangeMonitor monitor,
            string path)
        {
            var e =
                new FileSystemChangedEvent
            {
                Path = path,
                Type = FileSystemChangedEventType.AddedOrUpdated
            };

            monitor.Changed(e);
        }
コード例 #2
0
        public static void RaiseRenamed(
            this IFileSystemChangeMonitor monitor,
            string path, string newPath)
        {
            var e =
                new FileSystemChangedEvent
            {
                Path    = path,
                NewPath = newPath,
                Type    = FileSystemChangedEventType.Renamed
            };

            monitor.Changed(e);
        }