AuditHook Class

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

A hook that logs all events in the system and notifies users about subscribed events.

[Guid("D67AD07A-4A27-45C4-809B-9F274B76D426")]
[Plugin(Icon = "clipboard-text", Name = "Audit hook", Description = "Logs all events in the system and notifies users about subscribed events.")]
public class AuditHook : Hook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IAsyncHook, IHook, IPlugin, IExtension, IExpando, IDynamicMetaObjectProvider, IEnumerable>, IEnumerable, ICloneable
Inheritance:
System.Object → ExpandoPluginHookAuditHook
Attributes:
System.Runtime.InteropServices.GuidAttribute, PluginAttribute
Implements:
Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterAddMember}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterApproveInvite}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterDeleteComment}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterDeleteContent}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterDeleteConversation}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterDeletePost}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterDeleteSpace}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterFollowEntity}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterInsertContent}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterInsertComment}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterInsertConversation}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterInsertInvite}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterInsertPost}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterInsertSpace}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterInsertUser}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterInsertVote}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterJoinConversation}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterLeaveConversation}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterLikeEntity}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterMoveContent}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterUpdateContent}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterRemoveMember}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterRequestMembership}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterResetPassword}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterReviewMember}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterSendMail}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterSignIn}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterSignOut}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterUpdateProfile}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterUpdatePost}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterUpdateComment}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterVerifyInvite}, IHook, IPlugin, IExtension, IExpando

Constructors

AuditHook()

Methods

HandleAsync(AfterAddMember) Logs the AfterAddMember event and notifies subscribers that a new user joined the space.
HandleAsync(AfterApproveInvite) Logs the AfterApproveInvite event.
HandleAsync(AfterDeleteComment) Logs the AfterDeleteComment event.
HandleAsync(AfterDeleteContent) Logs the AfterDeleteContent event.
HandleAsync(AfterDeleteConversation) Logs the AfterDeleteConversation event.
HandleAsync(AfterDeletePost) Logs the AfterDeletePost event.
HandleAsync(AfterDeleteSpace) Logs the AfterDeleteSpace event.
HandleAsync(AfterFollowEntity) Handles the AfterFollowEntity event.
HandleAsync(AfterInsertComment) Logs the AfterInsertComment event and notifies people that follow the commented entity.
HandleAsync(AfterInsertContent) Logs the AfterInsertContent event and sends the relevant notification.
HandleAsync(AfterInsertConversation) Logs the AfterInsertConversation event.
HandleAsync(AfterInsertInvite) Logs the AfterInsertInvite event.
HandleAsync(AfterInsertPost) Logs the AfterInsertPost event and creates relevant notifications.
HandleAsync(AfterInsertSpace) Logs the AfterInsertSpace event and subscribes the creator to the space.
HandleAsync(AfterInsertUser) Logs the AfterInsertUser event.
HandleAsync(AfterInsertVote) Handles the AfterInsertVote event.
HandleAsync(AfterJoinConversation) Logs the AfterJoinConversation event.
HandleAsync(AfterLeaveConversation) Logs the AfterLeaveConversation event and posts a message in the conversation about the user leaving.
HandleAsync(AfterLikeEntity) Logs the AfterLikeEntity event.
HandleAsync(AfterMoveContent) Logs the AfterMoveItem event.
HandleAsync(AfterRemoveMember) Logs the AfterRemoveMember event.
HandleAsync(AfterRequestMembership) Handles the AfterRequestMembership event.
HandleAsync(AfterResetPassword) Logs the ResetPassword event.
HandleAsync(AfterReviewMember) Logs the AfterReviewMember event.
HandleAsync(AfterSendMail) Logs the SendMail event.
HandleAsync(AfterSignIn) Logs the SignIn event.
HandleAsync(AfterSignOut) Logs the SignOut event.
HandleAsync(AfterUpdateComment) Logs the AfterUpdateComment event and creates relevant notifications.
HandleAsync(AfterUpdateContent) Logs the AfterUpdateContent event.
HandleAsync(AfterUpdatePost) Logs the AfterUpdatePost event and creates relevant notifications.
HandleAsync(AfterUpdateProfile) Logs the AfterUpdateProfile event and post a message.
HandleAsync(AfterVerifyInvite) Logs the AfterVerifyInvite event and notifies admins that there is an invite pending approval.
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.