mirror of
https://github.com/azaion/annotations.git
synced 2026-04-23 00:06:31 +00:00
d92da6afa4
notifying client of AI model conversion
14 lines
399 B
C#
14 lines
399 B
C#
using Azaion.Common.Events;
|
|
using MediatR;
|
|
|
|
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;
|
|
}
|
|
}
|