This commit is contained in:
Alex Bezdieniezhnykh
2024-11-21 16:38:45 +02:00
parent 5a592e9dbf
commit 490e90f239
2 changed files with 12 additions and 9 deletions
@@ -69,8 +69,10 @@ public class DatasetExplorerEventHandler(DatasetExplorer datasetExplorer, IGalle
}
}
public Task Handle(ImageCreatedEvent notification, CancellationToken cancellationToken)
public async Task Handle(ImageCreatedEvent imageCreatedEvent, CancellationToken cancellationToken)
{
throw new NotImplementedException();
var (thumbnailDto, detections) = await galleryManager.CreateThumbnail(imageCreatedEvent.ImagePath, cancellationToken);
if (thumbnailDto != null && detections != null)
datasetExplorer.AddThumbnail(thumbnailDto, detections);
}
}