Class MessageEventArgs
- Namespace
- Balsam
- Assembly
- Balsam.Common.dll
A class used to pass messages to listeners.
public class MessageEventArgs : EventArgs
- Inheritance
-
MessageEventArgs
- Inherited Members
- Extension Methods
Constructors
MessageEventArgs(string)
Initializes a new message with default severity level of Info.
public MessageEventArgs(string message)
Parameters
message
stringThe message to be delivered.
MessageEventArgs(string, SeverityLevel)
Initializes a new message with the specified severity level.
public MessageEventArgs(string message, SeverityLevel severity)
Parameters
message
stringThe message to be delivered.
severity
SeverityLevelThe severity level.
Properties
Message
Gets the message.
public string Message { get; }
Property Value
Severity
Gets the severity level.
public SeverityLevel Severity { get; }
Property Value
Symbol
Gets/sets the symbol that generated the message, if any.
public string Symbol { get; set; }
Property Value
Timestamp
Gets the timestamp of the message.
public DateTime Timestamp { get; }
Property Value
UserState
Gets/sets an object representing the user state.
public object UserState { get; set; }
Property Value
Methods
ToString()
Returns a string representation of this message.
public override string ToString()