mirror of
https://github.com/achiez/NebulaAuth-Steam-Desktop-Authenticator-by-Achies.git
synced 2026-07-28 23:59:35 +00:00
f15632f2d0
- Introduced centralized MAACRequestHandler for error tracking, retries, and status escalation (Ok/Warning/Error) per account - PortableMaClient now uses new Status property (PortableMaClientStatus) instead of IsError; error history tracked in PortableMaClientErrorData - All MAAC requests now routed through MAACRequestHandler, providing unified error handling and retry logic - MultiAccountAutoConfirmer now filters accounts by Status.StatusType == Ok - Updated MainWindow UI: account name color reflects status (Success/Warning/Error); added "Unattach proxy" to context menu - Removed obsolete PortableMaClientStatusToColorConverter and related bindings - Settings: removed IgnorePatchTuesdayErrors, added MaacErrorThreshold and MaacRetryInterval for error escalation control - Refactored SessionHandler: split into logic, API, and helpers; improved exception propagation and session management - AdmissionHelper methods now handle null sessions and always transfer community cookies if session is missing - Mafile export: always preserves SteamId, even if session data is not exported - ViewModel: RemoveProxy command now parameterized and only enabled if Mafile has a proxy - Enabled concurrent log writing in NLog config - Minor code cleanups and improved exception signatures
26 lines
677 B
C#
26 lines
677 B
C#
namespace NebulaAuth.Model.MAAC;
|
|
|
|
public record PortableMaClientStatus(PortableMaClientStatusType StatusType, string? Message = null)
|
|
{
|
|
public static PortableMaClientStatus Ok()
|
|
{
|
|
return new PortableMaClientStatus(PortableMaClientStatusType.Ok);
|
|
}
|
|
|
|
public static PortableMaClientStatus Warning(string? message)
|
|
{
|
|
return new PortableMaClientStatus(PortableMaClientStatusType.Warning, message);
|
|
}
|
|
|
|
public static PortableMaClientStatus Error(string? message)
|
|
{
|
|
return new PortableMaClientStatus(PortableMaClientStatusType.Error, message);
|
|
}
|
|
}
|
|
|
|
public enum PortableMaClientStatusType
|
|
{
|
|
Ok,
|
|
Warning,
|
|
Error
|
|
} |