Track manual snapshots and apply versioned camera config
This commit is contained in:
1 parent
f4a8f4a668
commit
8f00f69a5f
30 files changed
+645
-63
No files matched your search
@@ -209,6 +209,13 @@ public sealed class StorageProviderFactory : IStorageProvider, Heimdall.Applicat
|
||||
finally { DisposeProvider(provider); }
|
||||
}
|
||||
|
||||
public async Task<int> CleanupStagingAsync(DateTime olderThanUtc, CancellationToken ct = default)
|
||||
{
|
||||
var provider = Resolve();
|
||||
try { return await provider.CleanupStagingAsync(olderThanUtc, ct).ConfigureAwait(false); }
|
||||
finally { DisposeProvider(provider); }
|
||||
}
|
||||
|
||||
private static void DisposeProvider(IStorageProvider provider) => (provider as IDisposable)?.Dispose();
|
||||
|
||||
private IStorageProvider Resolve(string? providerOverride = null)
|
||||
|
||||
Reference in new issue
Block a user