mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 13:26:30 +00:00
fix bugs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user