LogEntry Class

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

Describes an entry in the system event log, e.g. a user posts something in the stream, edits a wiki article, joins a space etc.

public class LogEntry : ICloneable
Inheritance:
System.Object → LogEntry

Constructors

LogEntry() Initializes a new instance of the LogEntry class.
LogEntry(LogEntryType) Initializes a new instance of the LogEntry class with the specified action.
LogEntry(LogEntryType, IEntity) Initializes a new instance of the LogEntry class with the specified type and object reference.
LogEntry(LogEntryType, IEntity, IEntity) Initializes a new instance of the LogEntry class with the specified type, object and context reference.

Properties

Action Gets or sets the action that occured.
Actor Gets the User that performed the action.
ActorId Gets or sets the id of the User that performed the action.
Context Gets or sets a reference to the context of the action.
CreatedAt Gets or sets the time (UTC) the LogEntry occured.
Html Gets or sets the entry text as html.
Id Gets the id of the event.
Subject Gets or sets a reference to the subject of the action.
Text Gets or sets the entry text.

Methods

Clone() Creates a new object that is a copy of the current instance.

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.