CleanupDaemon Class

Namespace:
Weavy.Core.Plugins
Assembly:
Weavy.Core.dll

A daemon that performs cleanup tasks.

[Guid("D818BA5A-1E82-4D53-9E62-4708555B950F")]
[Daemon(Icon = "delete-forever", Name = "Cleanup", Description = "Performs various cleanup tasks such as removing temp files etc.", Schedule = "0 0 * * *")]
public class CleanupDaemon : Daemon, IDaemon, IValidatableObject, ICommand, IFunction, IPlugin, IExtension, IExpando, IDynamicMetaObjectProvider, IEnumerable>, IEnumerable, ICloneable
Inheritance:
System.Object → ExpandoPluginFunctionDaemonCleanupDaemon
Attributes:
System.Runtime.InteropServices.GuidAttribute, DaemonAttribute
Implements:
IDaemon, ICommand, IFunction, IPlugin, IExtension, IExpando

Constructors

CleanupDaemon()

Properties

Cache Gets or sets a value indicating whether old files should be deleted from the /App_Data/Cache/ directory.
Files Gets or sets a value indicating whether orphaned blobs should be deleted from the repository.
Notifications Gets or sets a value indicating whether old notifications should be deleted.
Temp Gets or sets a value indicating whether old files should be deleted from the /App_Data/Temp/ directory.
Trash Gets or sets a value indicating whether old stuff should be removed from the recycle bin.

Methods

IExpando.get_Item(String)
IExpando.set_Item(String, Object)
Run(CancellationToken, String[]) Clears the internal cache.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.