Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.IO.FileData<TObj> Class

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

Syntax

public class FileData<TObj>;

Constructors

PublicFileData<TObj>Constructor.

Properties

PublicBaseFolderThe full path of the folder where the file(s) is/are stored.
PublicCacheableDefines whether the data should be cached.
PublicCacheKeyThe cache key used.
PublicDateThe date/timestamp.
PublicFileNameThe file name.
PublicFormatThe format used to serialize the data.

Methods

PublicAddAsyncAdds an new file.
PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
PublicExistsAsyncCheck if the file exists.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
PublicLoadAsyncLoads a file, returns a new instance of the object.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicRemoveAsyncRemoves the file (with locking). Fails if the file doesn't exist.
PublicRemoveNoLockAsyncRemoves the file (without locking). Fails if the file doesn't exist.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.
PublicTryRemoveAsyncRemoves the file (with locking).
PublicUpdateFileAsyncUpdates the object in an existing file. The file may be renamed at the same time

See Also YetaWF.Core Overview