0
0
mirror of https://github.com/sp-tarkov/loot-dump-processor.git synced 2025-02-13 05:50:45 -05:00
BlueXTX 3cb1be1ec9
Fix static loot output (#6)
* Improved thread safety and async processing in dump processor components

* Removed unused _processedDumps field and simplified variable scope in QueuePipeline
2025-01-12 23:19:41 +00:00

17 lines
457 B
C#

using System.Collections.Concurrent;
using System.Text.Json.Serialization;
namespace LootDumpProcessor.Storage.Collections;
public class FlatKeyableDictionary<K, V> : ConcurrentDictionary<K, V>, IKeyable
{
[JsonPropertyName("__id__")] private string Id { get; set; }
public FlatKeyableDictionary(string id)
{
ArgumentException.ThrowIfNullOrWhiteSpace(id);
Id = id;
}
public IKey GetKey() => new FlatUniqueKey([Id]);
}