Implements YetaWF data file I/O for an object of type <typeparamref name="TObj" /> and uses shared caching.
This is intended for framework use to manage data files.
Data is serialized when saved and deserialized when loaded.
Namespace: YetaWF.Core.IO
Assembly: YetaWF.Core
Inheritance
public class FileData<TObj>;
FileData<TObj> | Constructor. |
BaseFolder | The full path of the folder where the file(s) is/are stored. | |
Cacheable | Defines whether the data should be cached. | |
CacheKey | The cache key used. | |
Date | The date/timestamp. | |
FileName | The file name. | |
Format | The format used to serialize the data. |
AddAsync | Adds an new file. | |
Equals | Determines whether the specified object is equal to the current object. | |
ExistsAsync | Check if the file exists. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. | |
GetHashCode | Serves as the default hash function. | |
GetType | Gets the Type of the current instance. | |
LoadAsync | Loads a file, returns a new instance of the object. | |
MemberwiseClone | Creates a shallow copy of the current Object. | |
ReferenceEquals | Determines whether the specified Object instances are the same instance. | |
RemoveAsync | Removes the file (with locking). Fails if the file doesn't exist. | |
RemoveNoLockAsync | Removes the file (without locking). Fails if the file doesn't exist. | |
ToString | Returns a string that represents the current object. | |
TryRemoveAsync | Removes the file (with locking). | |
UpdateFileAsync | Updates the object in an existing file. The file may be renamed at the same time |
See Also YetaWF.Core Overview
Documentation Feedback
© 2024 - Softel vdm, Inc. - YetaWF.com