NotificationDaemon Class

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

A daemon that sends notification emails.

[Guid("212AF970-2127-4C7B-9987-27A52C99882E")]
[Daemon(Icon = "email", Name = "Email notifications", Description = "Sends email notifications.", Schedule = "*/15 * * * *")]
public class NotificationDaemon : Daemon, IDaemon, IFunction, IPlugin, IExtension, IExpando, IDynamicMetaObjectProvider, IEnumerable<KeyValuePair<string, object>>, IEnumerable, ICloneable, IValidatableObject
Inheritance:
System.Object → ExpandoPluginFunctionDaemonNotificationDaemon
Attributes:
System.Runtime.InteropServices.GuidAttribute, DaemonAttribute
Implements:
IDaemon, IFunction, IPlugin, IExtension, IExpando

Constructors

NotificationDaemon()

Properties

DailyDigestSentAt Gets the date and time the daily digest email was last sent.
EnableDailyDigest Gets or sets a value indicating whether the daily digest email is enabled.
EnableEmailNotifications Gets or sets a value indicating whether email notifications are enabled.

Methods

Run(CancellationToken, String[]) Send email notifications

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, Formatting?, 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.