4.1 ImageStore
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -119,7 +119,7 @@ Each type lives in `src/FrameProcessor/Domain/`. Tests in `tests/FrameProcessor.
|
||||
|
||||
## Phase 4 — Storage
|
||||
|
||||
### [ ] 4.1 `ImageStore`
|
||||
### [x] 4.1 `ImageStore`
|
||||
- Constructor takes `IOptions<StorageOptions>`; ensures `ImageDirectory` exists on startup.
|
||||
- `Task WriteAsync(MacAddress, ReadOnlyMemory<byte>, CancellationToken)` — writes to `{mac}.png.tmp`, then `File.Move(tmp, final, overwrite: true)`.
|
||||
- `bool TryGetPath(MacAddress, out string path)` returning the on-disk path if present.
|
||||
|
||||
Reference in New Issue
Block a user