Connection Class

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

A class for tracking realtime connections.

public class Connection
Inheritance:
System.Object → Connection

Constructors

Connection()

Properties

ActiveAt Gets or sets the time the connection was last reported active.
CreatedAt Gets or sets the time this connection was created.
Id Gets or sets the connection id.
IsActive Gets a value indicating whether this connection is active.
ModifiedAt Gets or sets the time the connection was last modified (seen alive).
UserAgent Gets or sets the UserAgent string of the connection.
UserId Gets or sets the id of the User on this connection.

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.