mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 19:46:29 +00:00
Errors sending to UI
notifying client of AI model conversion
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
namespace Azaion.Annotator;
|
||||
using Azaion.Common.Events;
|
||||
using MediatR;
|
||||
|
||||
public class AnnotatorEventHandler;
|
||||
namespace Azaion.Annotator;
|
||||
|
||||
public class AnnotatorEventHandler(Annotator annotator) : INotificationHandler<LoadErrorEvent>
|
||||
{
|
||||
public Task Handle(LoadErrorEvent notification, CancellationToken cancellationToken)
|
||||
{
|
||||
annotator.Dispatcher.Invoke(() => annotator.TbError.Text = notification.Error);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user