Table of Contents

Class LogBatcher

Namespace
McServerLauncher.Views
Assembly
McServerLauncher.dll

Buffered progress logger for dialog TextBoxes (EFI-6): the Forge installer prints thousands of lines, and appending each one directly (Text += line) froze the UI. Lines are buffered and flushed a few times per second, keeping only the most recent McServerLauncher.Views.LogBatcher.MaxLines. Extracted from CreateServerDialog and InstallLoaderDialog, which kept two identical copies of this logic. Call Stop() from the dialog's OnClosed.

public sealed class LogBatcher
Inheritance
LogBatcher
Inherited Members

Constructors

LogBatcher(TextBox)

public LogBatcher(TextBox target)

Parameters

target TextBox

Methods

Append(string)

Queues a line (called via Progress<string>, i.e. on the UI thread).

public void Append(string line)

Parameters

line string

Stop()

public void Stop()