WIP
This commit is contained in:
@@ -2,22 +2,9 @@
|
||||
|
||||
namespace Hyperbar.Widget;
|
||||
|
||||
public class WidgetHostHandler(IMediator mediator) :
|
||||
public class WidgetHostHandler :
|
||||
INotificationHandler<Created<IWidgetHost>>
|
||||
{
|
||||
//public async Task Handle(Started<IWidgetHost> notification,
|
||||
// CancellationToken cancellationToken)
|
||||
//{
|
||||
// if (notification.Value is IWidgetHost host)
|
||||
// {
|
||||
// if (host.Services.GetService<IWidgetViewModel>() is IWidgetViewModel viewModel)
|
||||
// {
|
||||
// await mediator.PublishAsync(new Created<IWidgetViewModel>(viewModel),
|
||||
// nameof(WidgetViewModel), cancellationToken);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
public async Task Handle(Created<IWidgetHost> notification,
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user