Class Console
Handles the console logic
Inheritance
object
Console
Implements
Namespace: i5.Toolkit.Core.AppConsole
Assembly: cs.temp.dll.dll
Syntax
public class Console : IConsole
Constructors
Console()
Creates a new console
Declaration
public Console()
Properties
IsCapturing
If true, the console captures messages
Declaration
public bool IsCapturing { get; set; }
Property Value
Type | Description |
---|---|
bool |
Messages
Captured messages
Declaration
public List<ILogMessage> Messages { get; protected set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><ILogMessage> |
Methods
AddMessage(ILogMessage)
Declaration
protected void AddMessage(ILogMessage message)
Parameters
Type | Name | Description |
---|---|---|
ILogMessage | message |
Subscribe()
Declaration
protected virtual void Subscribe()
Unsubscribe()
Declaration
protected virtual void Unsubscribe()
Events
OnMessageAdded
Event which is invoked when a new message is added to the console
Declaration
public event Action OnMessageAdded
Event Type
Type | Description |
---|---|
Action |