Class AgentLog
This class is used to log an agent interaction in JSON format.
Namespace: Agents.Net
Assembly: Agents.Net.dll
Syntax
public class AgentLog : object
Remarks
It can be used for analysing tests or the log.
Constructors
| Improve this Doc View SourceAgentLog(String, String, Guid, MessageLog)
Initialized a new instance of the class AgentLog.
Declaration
public AgentLog(string agent, string type, Guid agentId, MessageLog message)
Parameters
Type | Name | Description |
---|---|---|
String | agent | Name of the agent. |
String | type | The type of the interaction. |
Guid | agentId | The agent id. |
MessageLog | message | The message formatted as a MessageLog |
Properties
| Improve this Doc View SourceAgent
Get the name of the agent.
Declaration
public string Agent { get; }
Property Value
Type | Description |
---|---|
String |
AgentId
Get the id of the agent.
Declaration
public Guid AgentId { get; }
Property Value
Type | Description |
---|---|
Guid |
Remarks
Only relevant to find out if there are more than one instance of a specific agent.
Message
Get the message, formatted as MessageLog.
Declaration
public MessageLog Message { get; }
Property Value
Type | Description |
---|---|
MessageLog |
Type
Get the type o the interaction
Declaration
public string Type { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
Currently these are "Executing", "Executed", "Intercepting" and "Publishing"