This commit is contained in:
TheXamlGuy
2024-02-01 22:13:45 +00:00
parent 6dbe2db584
commit 4edb0a7eb5
21 changed files with 126 additions and 85 deletions
+1 -14
View File
@@ -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)
{