ImageResizer  3.4.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Types | Public Member Functions | Properties | List of all members
ImageResizer.Plugins.DiskCache.CleanupWorkItem Class Reference

An item in the work queue More...

Public Types

enum  Kind {
  Kind.PopulateFolderRecursive, Kind.CleanFolderRecursive, Kind.CleanFolder, Kind.PopulateFolder,
  Kind.RemoveFile, Kind.FlushAccessedDate
}
 

Public Member Functions

 CleanupWorkItem (Kind task, string relativePath, string physicalPath)
 
 CleanupWorkItem (Kind task, LazyTaskProvider callback)
 
override int GetHashCode ()
 
override bool Equals (object obj)
 

Properties

LazyTaskProvider LazyProvider [get, set]
 Should be a delegate a CleanupWorkItem instance (which doesn't have LazyProvider value, but has RelativePath and PhyscialPath values). May return null More...
 
string RelativePath [get]
 Cache-relative path More...
 
string PhysicalPath [get]
 Physcial path More...
 
Kind Task [get, set]
 

Detailed Description

An item in the work queue

Definition at line 14 of file CleanupWorkItem.cs.

Member Enumeration Documentation

Enumerator
PopulateFolderRecursive 

If the .IsValid is false, populates the folder, enqueing more PopulateFolderRecursive items for all subfolders discovered. Sets IsValid to true

CleanFolderRecursive 

Requires a valid folder.

CleanFolder 

Cleans the folder, enqueing RemoveFile tasks for everything that needs to be removed.

PopulateFolder 

Populates (non-recursive) the files and folders inside the specified directory.

RemoveFile 

Removes a single file, with the file and dir being determined at executing time via the LazyProvider delegate.

FlushAccessedDate 

Calls File.SetLastAccessedTimeUtc() using the in-memory value, if present.

Definition at line 64 of file CleanupWorkItem.cs.

64  {
65  /// <summary>
66  /// If the .IsValid is false, populates the folder, enqueing more PopulateFolderRecursive items for all subfolders discovered. Sets IsValid to true
67  /// </summary>
69  /// <summary>
70  /// Requires a valid folder.
71  /// </summary>
73  /// <summary>
74  /// Cleans the folder, enqueing RemoveFile tasks for everything that needs to be removed.
75  /// </summary>
77  /// <summary>
78  /// Populates (non-recursive) the files and folders inside the specified directory.
79  /// </summary>
81  /// <summary>
82  /// Removes a single file, with the file and dir being determined at executing time via the LazyProvider delegate.
83  /// </summary>
84  RemoveFile,
85  /// <summary>
86  /// Calls File.SetLastAccessedTimeUtc() using the in-memory value, if present.
87  /// </summary>
89 
90  }
Removes a single file, with the file and dir being determined at executing time via the LazyProvider ...
If the .IsValid is false, populates the folder, enqueing more PopulateFolderRecursive items for all s...
Cleans the folder, enqueing RemoveFile tasks for everything that needs to be removed.
Calls File.SetLastAccessedTimeUtc() using the in-memory value, if present.
Populates (non-recursive) the files and folders inside the specified directory.

Property Documentation

LazyTaskProvider ImageResizer.Plugins.DiskCache.CleanupWorkItem.LazyProvider
getset

Should be a delegate a CleanupWorkItem instance (which doesn't have LazyProvider value, but has RelativePath and PhyscialPath values). May return null

Definition at line 23 of file CleanupWorkItem.cs.

string ImageResizer.Plugins.DiskCache.CleanupWorkItem.PhysicalPath
get

Physcial path

Definition at line 37 of file CleanupWorkItem.cs.

string ImageResizer.Plugins.DiskCache.CleanupWorkItem.RelativePath
get

Cache-relative path

Definition at line 30 of file CleanupWorkItem.cs.


The documentation for this class was generated from the following file: