PresenceDaemon Class

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

A daemon that keeps track of connections that the RealTimeHub has seen. It uses a time based system to verify if connections are *actually* still online.

[Guid("EFD2CFA5-05ED-4B96-89F4-14BBA7444DE9")]
[Daemon(Icon = "clock", Name = "Presence monitor", Description = "Keeps track of online users.", Schedule = "* * * * *")]
public class PresenceDaemon : Daemon, IDaemon, IFunction, IPlugin, IExtension, IExpando, IDynamicMetaObjectProvider, IEnumerable<KeyValuePair<string, object>>, IEnumerable, ICloneable, IValidatableObject
Inheritance:
System.Object → ExpandoPluginFunctionDaemonPresenceDaemon
Attributes:
System.Runtime.InteropServices.GuidAttribute, DaemonAttribute
Implements:
IDaemon, IFunction, IPlugin, IExtension, IExpando

Constructors

PresenceDaemon()

Methods

Run(CancellationToken, String[]) Update alive connections and delete zombies.

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.