Event Class

Represents an event.

Inheritance Hierarchy

System.Object
  TcHmiSrv.Core.Event
Namespace:  TcHmiSrv.Core
Assembly:  TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 1.3.0.0

Syntax

C#

public class Event : IComparable<Event>, 
    ICopyable<Event>, IDeepCopyable<Event>, IShallowCopyable<Event>, 
    IEquatable<Event>

The Event type exposes the following members.

Constructors

 

Name

Description

Event Class 1:

Event.

Initializes a new instance of the Event class.

Event Class 2:

Event(Context, String)

Initializes a new instance of the Event class with the specified Context and name.

Properties

 

Name

Description

Event Class 3:

Domain

Contains the domain of the Event.

Event Class 4:

IsSet

Gets a value that indicates whether the Event is set.

Event Class 5:

Name

Contains the name of the Event.

Event Class 6:

Payload

Contains the payload of the Event.

Event Class 7:

Session

Contains the Session of the Event.

Event Class 8:

TimeReceived

Contains the DateTime when the Event was received.

Methods

 

Name

Description

Event Class 9:

CompareTo

Compares the current Event with another Event and returns an integer that indicates whether the current Event precedes, follows, or occurs in the same position in the sort order as the other Event.

Event Class 10:

DeepCopy

Creates a new object that is a deep copy of the current Event.

Event Class 11:

Equals(Object)

Determines whether the specified Object is equal to the current Event. (Overrides Object.Equals(Object).)

Event Class 12:

Equals(Event)

Indicates whether the current Event is equal to another Event.

Event Class 13:

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Event Class 14:

GetHashCode

Serves as the default hash function. (Overrides Object.GetHashCode..)

Event Class 15:

GetType

Gets the Type of the current instance. (Inherited from Object.)

Event Class 16:

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Event Class 17:

ShallowCopy

Creates a new Event that is a shallow copy of the current Event.

Event Class 18:

ToString

Returns a String that represents the Name of the current Event. (Overrides Object.ToString..)

Operators

 

Name

Description

Event Class 19:

Event Class 20:

Equality

Determines whether two instances of the Event class are equal.

Event Class 21:

Event Class 22:

GreaterThan

Determines whether the current instance of the Event class is greater than another instance.

Event Class 23:

Event Class 24:

GreaterThanOrEqual

Determines whether the current instance of the Event class is greater than or equal to another instance.

Event Class 25:

Event Class 26:

Inequality

Determines whether two instances of the Event class are not equal.

Event Class 27:

Event Class 28:

LessThan

Determines whether the current instance of the Event class is less than another instance.

Event Class 29:

Event Class 30:

LessThanOrEqual

Determines whether the current instance of the Event class is less than or equal to another instance.

Extension Methods

 

Name

Description

Event Class 31:

ToJson.

Overloaded.

Returns an unformatted JSON String that represents the current Event. (Defined by EventExtensions.)

Event Class 32:

ToJson(Boolean)

Overloaded.

Returns an unformatted JSON String that represents the current Event. (Defined by EventExtensions.)

Event Class 33:

ToJson(Boolean, Boolean)

Overloaded.

Returns a JSON String that represents the current Event. (Defined by EventExtensions.)

Reference

TcHmiSrv.Core Namespace