Class WorkProgressState
Where a piece of work the server reports the progress of stands (LSP 3.17 §Work Done Progress): what it is, what it is doing now, and how much of it is done.
public sealed record WorkProgressState : IEquatable<WorkProgressState>
- Inheritance
-
WorkProgressState
- Implements
- Inherited Members
Constructors
WorkProgressState(ProgressToken, string, string?, int?, bool, WorkProgressOrigin)
Where a piece of work the server reports the progress of stands (LSP 3.17 §Work Done Progress): what it is, what it is doing now, and how much of it is done.
public WorkProgressState(ProgressToken Token, string Title, string? Message, int? Percentage, bool IsDone = false, WorkProgressOrigin Origin = WorkProgressOrigin.Request)
Parameters
TokenProgressTokenThe token its progress is reported to.
TitlestringWhat the work is.
MessagestringWhat it is doing now; null when it has not said.
Percentageint?How much of it is done, from 0 to 100; null when that is not known.
IsDoneboolWhether it is done: it ended, or the server that did it went away.
OriginWorkProgressOriginWhose work it is: done for a request of the client's, or begun by the server of its own.
Properties
IsDone
Whether it is done: it ended, or the server that did it went away.
public bool IsDone { get; init; }
Property Value
Message
What it is doing now; null when it has not said.
public string? Message { get; init; }
Property Value
Origin
Whose work it is: done for a request of the client's, or begun by the server of its own.
public WorkProgressOrigin Origin { get; init; }
Property Value
Percentage
How much of it is done, from 0 to 100; null when that is not known.
public int? Percentage { get; init; }
Property Value
- int?
Title
What the work is.
public string Title { get; init; }
Property Value
Token
The token its progress is reported to.
public ProgressToken Token { get; init; }