/// <summary> /// Initializes a new instance of the <see cref="ConsoleMessage"/> class. /// </summary> /// <param name="type">Type.</param> /// <param name="text">Text.</param> /// <param name="args">Arguments.</param> /// <param name="location">Message location.</param> public ConsoleMessage(ConsoleType type, string text, IList <IJSHandle> args, ConsoleMessageLocation location = null) { Type = type; Text = text; Args = args; Location = location; }
/// <summary> /// Initializes a new instance of the <see cref="ConsoleMessage"/> class. /// </summary> /// <param name="type">Type.</param> /// <param name="text">Text.</param> /// <param name="args">Arguments.</param> /// <param name="handleToString">IJSHandle to string.</param> /// <param name="location">Message location.</param> internal ConsoleMessage(ConsoleType type, string text, IEnumerable <IJSHandle> args, Func <IJSHandle, bool, string> handleToString, ConsoleMessageLocation location = null) { Type = type; _text = text; _handleToString = handleToString; Args = args; Location = location; }