Daemon Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

Base class for daemons (background services).

[Guid("9767B8FF-2A88-4B47-AC26-AC12FF8729A6")]
public class Daemon : Function, IDaemon, IFunction, IPlugin, IExtension, IExpando, IDynamicMetaObjectProvider, IEnumerable>, IEnumerable, ICloneable, IValidatableObject
Inheritance:
System.Object → ExpandoPluginFunctionDaemon
Attributes:
System.Runtime.InteropServices.GuidAttribute
Implements:
IDaemon, IFunction, IPlugin, IExtension, IExpando

Constructors

Daemon() Initializes a new instance of the Daemon class.

Properties

Crontab Gets the crontab schedule for the daemon.
FinishedAt Gets or sets the time the daemon was last finished.
IsEnabled Gets or sets a value indicating whether the plugin is enabled.
Schedule Gets or sets the Crontab expression representing the schedule when the daemon should run. See http://en.wikipedia.org/wiki/Cron.
StartedAt Gets or sets the time the daemon was last started.

Methods

IExpando.get_Item(String)
IExpando.set_Item(String, Object)
Validate(ValidationContext) Validate that the expression is valid.

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.