Skip to content

ReplProgressEvent

Semantic progress event.

public sealed record ReplProgressEvent : ReplInteractionEvent, IEquatable<ReplInteractionEvent>, IEquatable<ReplProgressEvent>
  • IEquatable<ReplInteractionEvent>
  • IEquatable<ReplProgressEvent>

ReplProgressEvent(string, double?, int?, int?, string?, ReplProgressState, string?)

Section titled “ReplProgressEvent(string, double?, int?, int?, string?, ReplProgressState, string?)”

Semantic progress event.

public ReplProgressEvent(string Label, double? Percent = null, int? Current = null, int? Total = null, string? Unit = null, ReplProgressState State = ReplProgressState.Normal, string? Details = null)

Computes a percentage when not provided explicitly and current/total are available.

public double? ResolvePercent()

double?

public int? Current { get; init; }

int?

public string? Details { get; init; }

string

public string Label { get; init; }

string

public double? Percent { get; init; }

double?

public ReplProgressState State { get; init; }

ReplProgressState

public int? Total { get; init; }

int?

public string? Unit { get; init; }

string