Class MessageLog
This class is used to log a message in JSON format.
Namespace: Agents.Net
Assembly: Agents.Net.dll
Syntax
public class MessageLog : object
Remarks
It can be used for analysing tests or the log.
Constructors
| Improve this Doc View SourceMessageLog(String, Guid, IEnumerable<Guid>, Guid, String, MessageLog)
Initialized a new instance of the class MessageLog.
Declaration
public MessageLog(string name, Guid id, IEnumerable<Guid> predecessors, Guid domain, string data, MessageLog child)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the message. |
Guid | id | The message id. |
IEnumerable<Guid> | predecessors | The message predecessors. |
Guid | domain | The message domain. |
String | data | The data string representation. |
MessageLog | child | The child, if existing. |
Properties
| Improve this Doc View SourceChild
Get the MessageLog representation of the child message.
Declaration
public MessageLog Child { get; }
Property Value
Type | Description |
---|---|
MessageLog |
Data
The the string representation of the message data.
Declaration
public string Data { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
This is the value for the DataToString() method.
Domain
Get the id of the message domain.
Declaration
public Guid Domain { get; }
Property Value
Type | Description |
---|---|
Guid |
Id
Get the id of the message.
Declaration
public Guid Id { get; }
Property Value
Type | Description |
---|---|
Guid |
Name
Get the name of the message type.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Predecessors
Get the ids of the predecessor messages.
Declaration
public IEnumerable<Guid> Predecessors { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Guid> |