Click or drag to resize
EfficientStorageManager Class

This class provides a simple way to distribute file storage across multiple directories when the accumulation of files would threaten to create hundreds of thousands of files in a single one.

Remarks
The file paths are determines using the following algorithm:
    Examples
    With the root path d:\documents\, the number of levels 4, and the number of files per level 500, the path for the 587982 file will be : d:\documents\0\0\0\2\587982_[name]
Inheritance Hierarchy
SystemObject
  Activsoft.StorageEfficientStorageManager

Namespace: Activsoft.Storage
Assembly: Activsoft.Engine (in Activsoft.Engine.dll) Version: 6.0.0.0
Syntax
public class EfficientStorageManager

The EfficientStorageManager type exposes the following members.

Constructors
  NameDescription
Public methodEfficientStorageManager
Initializes a new instance of the EfficientStorageManager class.
Top
Methods
  NameDescription
Public methodDeleteFile
Deletes the file identified by id
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetPath
Gets the full path of this identifier.
Public methodGetRelativePath
Gets the path of the identifier relative to the root directory.
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStoreFile
Stores the content of the stream at the given id.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also