Add download cleaner and dry run (#58)

This commit is contained in:
Marius Nechifor
2025-02-16 03:09:07 +02:00
parent 19b3675701
commit 596a5aed8d
86 changed files with 2503 additions and 409 deletions
@@ -17,8 +17,8 @@ public static class ContextProvider
return _asyncLocalDict.Value?.TryGetValue(key, out object? value) is true ? value : null;
}
public static T? Get<T>(string key) where T : class
public static T Get<T>(string key) where T : class
{
return Get(key) as T;
return Get(key) as T ?? throw new Exception($"failed to get \"{key}\" from context");
}
}