Udostępnij za pośrednictwem


ChaosEvent Class

Definition

This is the base class for all the different types of events that Chaos generates

[System.Serializable]
public abstract class ChaosEvent : System.Fabric.ByteSerializable
[<System.Serializable>]
type ChaosEvent = class
    inherit ByteSerializable
Public MustInherit Class ChaosEvent
Inherits ByteSerializable
Inheritance
Derived
Attributes

Properties

Kind

Describes the type of ChaosEvent.

TimeStampUtc

DateTime of when the event occurred

Methods

FromBytes(Byte[])

This is the default implementation to covert an object back from a byte array

(Inherited from ByteSerializable)
Read(BinaryReader)

This method is passed onto the derived classed for implementation

ReadInheritedMembers(BinaryReader)

This method is called from the derived class to convert back the inherited members from bytes

ToBytes()

In order to convert the Chaos event object into a byte array this override starts off by writing the event type and then calls the Write method of the derived class

ToString()

Returns a string representation of the class

Write(BinaryWriter)

This method is passed onto the derived classes for implementation

WriteInheritedMembers(BinaryWriter)

This method is called from the derived class to convert the inherited members into bytes

Applies to