Class InlineProgress<T>
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
Reports on the thread that called it, at once. Progress<T> posts to the thread's synchronization context instead, so a late message can land after the line that was written to say the work finished.
public sealed class InlineProgress<T> : IProgress<T>
Type Parameters
TWhat is reported.
- Inheritance
-
InlineProgress<T>
- Implements
-
IProgress<T>
- Inherited Members
Constructors
InlineProgress(Action<T>)
public InlineProgress(Action<T> handler)
Parameters
handlerAction<T>Called for every report, on the reporting thread.
Methods
Report(T)
Reports a progress update.
public void Report(T value)
Parameters
valueTThe value of the updated progress.