|
bool | ExteralProcessCleaning [get] |
| When true, indicates that another process is managing cleanup operations - this thread is idle, waiting for the other process to end before it can pick up work. More...
|
|
Definition at line 13 of file CleanupManager.cs.
void ImageResizer.Plugins.DiskCache.CleanupManager.AddedFile |
( |
string |
relativePath | ) |
|
|
inline |
Notifies the CleanupManager that a file was added under the specified relative path. Allows CleanupManager to detect when a folder needs cleanup work.
- Parameters
-
Definition at line 60 of file CleanupManager.cs.
64 int slash = relativePath.LastIndexOf(
'/');
65 string folder = slash > -1 ? relativePath.Substring(0, slash) :
"";
66 char c = System.IO.Path.DirectorySeparatorChar;
67 string physicalFolder = cache.PhysicalCachePath.TrimEnd(c) + c + folder.Replace(
'/',c).Replace(
'\\',c).Trim(c);
70 if (queue.
QueueIfUnique(
new CleanupWorkItem(CleanupWorkItem.Kind.CleanFolderRecursive, folder,physicalFolder)))
bool QueueIfUnique(CleanupWorkItem item)
Queues the item if no other identical items exist in the queue. Returns true if the item was added...
void MayHaveWork()
Tells the worker to check the queue for more work.
void ImageResizer.Plugins.DiskCache.CleanupManager.BeLazy |
( |
| ) |
|
|
inline |
bool ImageResizer.Plugins.DiskCache.CleanupManager.ExteralProcessCleaning |
|
get |
When true, indicates that another process is managing cleanup operations - this thread is idle, waiting for the other process to end before it can pick up work.
Definition at line 48 of file CleanupManager.cs.
The documentation for this class was generated from the following file: