Class JsonEventArgs
- Namespace
- Alis.Core.Aspect.Data.Json
- Assembly
- Alis.dll
Provides data for a JSON event.
public sealed class JsonEventArgs : EventArgsInheritance
Inherited Members
Constructors
JsonEventArgs(TextWriter, object, IDictionary<object, object>, JsonOptions)
Initializes a new instance of the Alis.Core.Aspect.Data.Json.JsonEventArgs class.
public JsonEventArgs(TextWriter writer, object value, IDictionary<object, object> objectGraph, JsonOptions options)Parameters
writerTextWriter-
The writer currently in use.
valueobject-
The value on the stack.
objectGraphIDictionary<object, object>-
The current serialization object graph.
optionsJsonOptions-
The options currently in use.
JsonEventArgs(TextWriter, object, IDictionary<object, object>, JsonOptions, string, object)
Initializes a new instance of the Alis.Core.Aspect.Data.Json.JsonEventArgs class.
public JsonEventArgs(TextWriter writer, object value, IDictionary<object, object> objectGraph, JsonOptions options, string name, object component)Parameters
writerTextWriter-
The writer currently in use.
valueobject-
The value on the stack.
objectGraphIDictionary<object, object>-
The current serialization object graph.
optionsJsonOptions-
The options currently in use.
namestring-
The field or property name.
componentobject-
The component holding the value.
Properties
Component
Gets the component holding the value. May be null.
public object Component { get; }Property Value
EventType
Gets or sets the type of the event.
public JsonEventType EventType { get; set; }Property Value
First
Gets or sets a value indicating whether the object being handled is first in the list. If the object is handled and written to the stream, this must be set to false after the stream is written. If the object is skipped, it must not be changed.
public bool First { get; set; }Property Value
Handled
Gets or sets a value indicating whether this Alis.Core.Aspect.Data.Json.JsonEventArgs is handled. An handled object can be skipped, not written to the stream. If the object is written, First must be set to false, otherwise it must not be changed.
public bool Handled { get; set; }Property Value
Name
Gets or sets the name on the stack. The Name can be a property or field name when serializing objects. May be null.
public string Name { get; set; }Property Value
ObjectGraph
Gets the current serialization object graph.
public IDictionary<object, object> ObjectGraph { get; }Property Value
Options
Gets the options currently in use.
public JsonOptions Options { get; }Property Value
Value
Gets or sets the value on the stack.
public object Value { get; set; }Property Value
Writer
Gets the writer currently in use.
public TextWriter Writer { get; }