Click or drag to resize

cMessage Class

This class encapsulates a message that is passed from the Core to an Interface via the cMessagePublisher-cMessageHandler system
Inheritance Hierarchy

Namespace:  EwECore
Assembly:  EwECore (in EwECore.dll) Version: 6.6.15981.0 (6.6.15981.0)
Syntax
public class cMessage : IMessage

The cMessage type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyDataType
Public propertyHyperlink
Get/set the hyperlink for this message.
Public propertyImportance
Public propertyMessage
Public propertySource
Public propertySuppressable
Public propertySuppressed
Public propertyType
Public propertyVariables
Get the variables associated with this message.
Top
Methods
  NameDescription
Public methodAddVariable
Add a cVariableStatus object to the list of variables that this message applies to.
Public methodEquals
Helper method, compares this message to another object.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasVariable(cVariableStatus)
Returns whether a message has a given variable attached.
Public methodHasVariable(eVarNameFlags)
Returns whether a message has a given variable attached.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString (Overrides ObjectToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodValue
Extension method; extract a value from an object by property name.
(Defined by Extensions.)
Top
Remarks
A message object is created by the Core and passed to cMessagePublisher.SendMessage(cMessage) where it is handled by which ever cMessageHandler object can handle this type of message. A message object can contain a list of variables that relate to the message i.e. If cMessage.Type = eMessageType.EE then cMessage.Variables will contain a list of cVariableStatus objects that represent variables that have an EE > 1.
See Also