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 |
---|---|---|
|
Initializes a new instance of the Event class. | |
|
Initializes a new instance of the Event class with the specified Context and name. |
Properties
|
Name |
Description |
---|---|---|
|
Contains the domain of the Event. | |
|
Gets a value that indicates whether the Event is set. | |
|
Contains the name of the Event. | |
|
Contains the payload of the Event. | |
|
Contains the Session of the Event. | |
|
Contains the DateTime when the Event was received. |
Methods
|
Name |
Description |
---|---|---|
|
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. | |
|
Creates a new object that is a deep copy of the current Event. | |
|
Determines whether the specified Object is equal to the current Event. (Overrides Object.Equals(Object).) | |
|
Indicates whether the current Event is equal to another Event. | |
|
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
|
Serves as the default hash function. (Overrides Object.GetHashCode..) | |
|
Gets the Type of the current instance. (Inherited from Object.) | |
|
Creates a shallow copy of the current Object. (Inherited from Object.) | |
|
Creates a new Event that is a shallow copy of the current Event. | |
|
Returns a String that represents the Name of the current Event. (Overrides Object.ToString..) |
Operators
|
Name |
Description |
---|---|---|
|
Determines whether two instances of the Event class are equal. | |
|
Determines whether the current instance of the Event class is greater than another instance. | |
|
Determines whether the current instance of the Event class is greater than or equal to another instance. | |
|
Determines whether two instances of the Event class are not equal. | |
|
Determines whether the current instance of the Event class is less than another instance. | |
|
Determines whether the current instance of the Event class is less than or equal to another instance. |
Extension Methods
|
Name |
Description |
---|---|---|
|
Overloaded. Returns an unformatted JSON String that represents the current Event. (Defined by EventExtensions.) | |
|
Overloaded. Returns an unformatted JSON String that represents the current Event. (Defined by EventExtensions.) | |
|
Overloaded. Returns a JSON String that represents the current Event. (Defined by EventExtensions.) |