30 Commits

Author SHA1 Message Date
Archangel 5c6ea28066 Improve backup service compatibility with different calendars 2025-12-06 02:01:56 +01:00
DrakiaXYZ 60acb23d72 Move cooldown check inside the lock for better thread safety (#663)
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-10-26 17:27:30 +00:00
DrakiaXYZ 4e73778920 Fix multiple backups running at once
- Backups now have a cooldown, default of 30 seconds
- Backups now have a lock, in the event of a TOC/TOU race condition, the lock will stop duplicate backups
2025-10-26 10:17:26 -07:00
DrakiaXYZ 47089afdd1 Further attempt to resolve profile corruption issues (#650)
* Further attempt to resolve profile corruption issues
- FileUtil now uses File.Replace and does a sync flush
- Add restore capabilities to BackupService
- If loading a profile fails, attempt to restore from the most recent backup
- Trigger a backup creation on raid start, raid end, and game close
- Load profiles before starting the backupService to avoid backing up corrupt profiles

* - Switch async calls to .GetAwaiter().GetResult() for better exception handling

---------

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
2025-10-23 07:49:24 +02:00
Chomp e5d0af3890 Formatting and naming consistency changes 2025-09-02 14:27:10 +01:00
Chomp 4a081a7ac3 Updated class param formatting 2025-08-11 21:08:55 +01:00
sp-tarkov-bot b14b74bf24 Format Style Fixes 2025-07-28 19:39:29 +00:00
Chomp 6209f55baf Simplified .Contains/.Add use 2025-07-25 20:19:29 +01:00
Chomp 5cfb1421c7 Removed unnecessary ?? 2025-07-25 20:13:50 +01:00
Chomp 34bd002876 list to ienumerable changes
Removed unused methods

strong to mongoId changes
2025-07-25 12:28:40 +01:00
Chomp 2609db2536 Removed unused injections 2025-07-04 09:40:22 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Chomp 060a2630c8 Made emthod protected + comment improvement 2025-06-17 09:51:35 +01:00
Chomp 125b81e3e5 Updated private methods inside BackupService to protected 2025-06-17 08:52:00 +01:00
Chomp 9a6d844635 Fixed backup folders not being 0-Padded 2025-06-16 22:47:32 +01:00
Chomp 0fed615b62 Fixed date format being incorrect 2025-06-16 22:41:53 +01:00
Chomp 5d4437b573 Expanded error logging inside ExtractDateFromFolderName 2025-06-16 21:54:46 +01:00
Chomp 8a0771515a Modernised ExtractDateFromFolderName 2025-06-16 21:29:14 +01:00
Chomp 470861111e Updated ExtractDateFromFolderName to make use of PATH class 2025-06-16 21:23:34 +01:00
Jesse 2c52012740 Further async changes (#387)
* Further async changes
- SaveServer & Backup Server are now async
- Anything that ties in with SaveServer saving (Such as callbacks) are now async
- Various async util methods added
- Removed two wrapper methods and switched code over to use the actual method

* Update test
2025-06-09 20:09:12 +01:00
Archangel 4e3c755e90 Remove AppContext, store profile related data in ProfileActivityService 2025-05-30 19:36:23 +02:00
Archangel c930197942 Cleanup AppContext 2025-05-29 23:50:06 +02:00
Cj 5af362b0b3 Implement loading metadata from the assembly 2025-05-07 15:05:22 -04:00
Alex 1499627d3c DI completely reworked to keep status of singletons on multi type components 2025-05-06 10:52:22 +01:00
Alex 222ca2e274 Replaced Serilog for custom logger 2025-04-24 16:29:36 +01:00
CWX 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00
Chomp 736355954a Merge pull request #108 from tetrisdev/ServersComments
Change Services Comments
2025-03-11 10:01:52 +00:00
Chomp 43b042ab84 Fixed nullref inside GetActiveServerMods 2025-03-10 10:28:53 +00:00
TetrisGG 86f31fe202 Change Services Comments
Changed comments to XML standard
Added missing comments
Adjusted wording on some comments for clarity.
2025-03-09 13:40:05 +01:00
clodan 270f095413 renamed projects and namespaces 2025-03-07 13:16:43 +00:00