1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Add command execution backoff/timeout

This commit is contained in:
RaidMax
2024-02-24 18:07:34 -06:00
parent 0f135337a9
commit aa83d88c77
3 changed files with 52 additions and 2 deletions

View File

@ -120,6 +120,11 @@ namespace SharedLibraryCore.Database.Models
[NotMapped]
public string TimeSinceLastConnectionString => (DateTime.UtcNow - LastConnection).HumanizeForCurrentCulture();
public DateTimeOffset LastCommandExecutionAttempt { get; set; } = DateTimeOffset.MinValue;
[NotMapped]
public int CommandExecutionAttempts { get; set; }
[NotMapped]
// this is kinda dirty, but I need localizable level names
public ClientPermission ClientPermission => new ClientPermission