Class ReloadReason
Represents a reason for reloading a manager or component.
public sealed record ReloadReason : IEquatable<ReloadReason>
- Inheritance
-
ReloadReason
- Implements
- Inherited Members
- Extension Methods
Constructors
ReloadReason(string, IReadOnlyList<FileChange>?, bool, bool, bool, string?)
Represents a reason for reloading a manager or component.
public ReloadReason(string Reason, IReadOnlyList<FileChange>? Changes = null, bool IsForced = false, bool IsCritical = false, bool IsFull = false, string? Key = null)
Parameters
Reason
stringThe reason for the reload.
Changes
IReadOnlyList<FileChange>A list of file changes that triggered the reload, if applicable.
IsForced
boolIndicates whether the reload is forced.
IsCritical
boolIndicates whether the reload is critical.
IsFull
boolIndicates whether the reload is a full reload.
Key
stringAn optional key associated with the reload reason, used for identification purposes.
Properties
Changes
A list of file changes that triggered the reload, if applicable.
public IReadOnlyList<FileChange>? Changes { get; init; }
Property Value
IsCritical
Indicates whether the reload is critical.
public bool IsCritical { get; init; }
Property Value
IsFileChange
Checks if we had file changes that triggered this reload reason.
public bool IsFileChange { get; }
Property Value
IsForced
Indicates whether the reload is forced.
public bool IsForced { get; init; }
Property Value
IsFull
Indicates whether the reload is a full reload.
public bool IsFull { get; init; }
Property Value
Key
An optional key associated with the reload reason, used for identification purposes.
public string? Key { get; init; }
Property Value
Reason
The reason for the reload.
public string Reason { get; init; }