Commit 3e34168
committed
Implement RemoveImageAsync method in ModifiableImagesCollection
Implement the `RemoveImageAsync` method in `ModifiableImagesCollection`.
* **Method Implementation**
- Find the image in the collection by its ID.
- Throw an `ArgumentException` if the image is not found.
- Use `Client.Dag.PutAsync` to update the image and key CIDs.
- Create a `ValueUpdateEvent` for the image removal.
- Apply the entry update and append the new entry.
- Update the `EventStreamPosition`.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/WindowsAppCommunity/WindowsAppCommunity.Sdk?shareId=XXXX-XXXX-XXXX-XXXX).1 parent ca9212b commit 3e34168
1 file changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
56 | 70 | | |
57 | 71 | | |
58 | 72 | | |
| |||
134 | 148 | | |
135 | 149 | | |
136 | 150 | | |
137 | | - | |
| 151 | + | |
0 commit comments