mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-22 20:01:37 -04:00
feat(server): version guarded metadata edits
This commit is contained in:
1 parent
11471e3c71
commit
d216bcd406
8 files changed
+122
-6
No files matched your search
@@ -44,6 +44,10 @@ public interface INestRepository
|
||||
CancellationToken cancellationToken = default) =>
|
||||
throw new NotSupportedException("This repository does not support nest version history.");
|
||||
|
||||
Task<NestRecord> UpdateMetadataAsync(Guid id, NestRecord record, int expectedRevision,
|
||||
CancellationToken cancellationToken = default) =>
|
||||
throw new NotSupportedException("This repository does not support guarded metadata edits.");
|
||||
|
||||
/// <summary>Atomically replaces the current archive only at the expected revision.</summary>
|
||||
Task<NestRecord> UpdateFileAsync(Guid id, byte[] nestFile, NestRecord record, int expectedRevision,
|
||||
CancellationToken cancellationToken = default) =>
|
||||
|
||||
Reference in new issue
Block a user