wip
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Hyperbar.Widget;
|
||||
|
||||
public class WidgetStartedHandler(IMediator mediator) :
|
||||
public class WidgetStartedHandler(IPublisher publisher) :
|
||||
INotificationHandler<Started<IWidgetHost>>
|
||||
{
|
||||
public async Task Handle(Started<IWidgetHost> notification,
|
||||
@@ -12,7 +12,7 @@ public class WidgetStartedHandler(IMediator mediator) :
|
||||
{
|
||||
if (host.Services.GetService<IWidgetViewModel>() is IWidgetViewModel viewModel)
|
||||
{
|
||||
await mediator.PublishAsync(new Create<IWidgetViewModel>(viewModel),
|
||||
await publisher.PublishAsync(new Create<IWidgetViewModel>(viewModel),
|
||||
nameof(IWidgetHostViewModel), cancellationToken);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user