PresenceHook Class

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

A hook that sends presence updates to connected clients.

[Guid("B76F518F-8E6C-47FF-8140-BF3C3C0B5280")]
[Plugin(Icon = "webhook", Name = "Presence hook", Description = "Sends presence updates to connected clients.")]
public class PresenceHook : Hook, IAsyncHook, IAsyncHook, IAsyncHook, IHook, IPlugin, IExtension, IExpando, IDynamicMetaObjectProvider, IEnumerable>, IEnumerable, ICloneable
Inheritance:
System.Object → ExpandoPluginHookPresenceHook
Attributes:
System.Runtime.InteropServices.GuidAttribute, PluginAttribute
Implements:
Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterDeleteConnection}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterInsertConnection}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterUpdateConnection}, IHook, IPlugin, IExtension, IExpando

Constructors

PresenceHook()

Methods

HandleAsync(AfterDeleteConnection)
HandleAsync(AfterInsertConnection)
HandleAsync(AfterUpdateConnection)
IExpando.get_Item(String)
IExpando.set_Item(String, Object)

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.