implement feedback loop

This commit is contained in:
2026-03-07 16:15:21 +01:00
parent 5d57abe913
commit 3de787e07c
18 changed files with 170 additions and 12 deletions

View File

@@ -32,6 +32,18 @@ public class WhiteboardManager
_whiteboards.TryRemove(whiteboardId, out _);
}
public async Task RefreshWhiteboard(Guid whiteboardId)
{
var whiteboard = GetWhiteboard(whiteboardId);
if (whiteboard == null)
{
RemoveWhiteboard(whiteboardId);
}
await AddWhiteboard(whiteboardId);
}
public Whiteboard? GetWhiteboard(Guid whiteboardId)
{
return _whiteboards.GetValueOrDefault(whiteboardId);