Interface IScriptMessageSink
- Namespace
- TabularEditor.Shared.Scripting
- Assembly
- TabularEditor3.Shared.dll
Hook for redirecting script messages (Info / Warning / Error / Output) in
command-line / headless hosts. When a sink is registered through
ScriptHelper.InitScriptHelper and TabularEditor.IApp.CommandLineMode is true,
all script messaging routes through the sink instead of writing directly to
Console. The UI app passes null (legacy behavior preserved).
public interface IScriptMessageSink
- Extension Methods
Methods
Error(string, int, bool)
Called when a script invokes Error(message).
void Error(string message, int lineNumber, bool suppressHeader)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | |
| int | lineNumber | |
| bool | suppressHeader |
Info(string, int)
Called when a script invokes Info(message).
void Info(string message, int lineNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | |
| int | lineNumber |
Output(object, int)
Called when a script invokes Output(value).
void Output(object value, int lineNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | |
| int | lineNumber |
Warning(string, int, bool)
Called when a script invokes Warning(message).
void Warning(string message, int lineNumber, bool suppressHeader)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | |
| int | lineNumber | |
| bool | suppressHeader |