WeavyRequestContext Class

Namespace:
Weavy.Web
Assembly:
Weavy.Web.dll

Encapsulates request specific data used by Weavy.

public class WeavyRequestContext : WeavyContext
Inheritance:
System.Object → WeavyContextWeavyRequestContext

Properties

App Gets the App associated with the current request.
Badge Get number of unread notifications.
Browser Gets info about the browser associated with the current request.
Content Gets the Content associated with the current request.
Current Gets the WeavyRequestContext object for the current request.
Space Gets the Space associated with the current request.
Theme Gets the current theme settings.

Methods

Copy(bool) Creates a copy of the current context.

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.