Added messaging pipeline

This commit is contained in:
TheXamlGuy
2024-01-06 13:57:18 +00:00
parent 4a27534e39
commit 53537aa4c7
60 changed files with 609 additions and 141 deletions
+6 -9
View File
@@ -1,18 +1,15 @@
using Hyperbar.Lifecycles;
using Hyperbar.Templates;
using System.Collections.Generic;
namespace Hyperbar.Windows;
namespace Hyperbar.Windows;
public partial class CommandViewModel :
ObservableCollectionViewModel,
ObservableCollectionViewModel<IWidgetViewModel>,
ITemplatedViewModel
{
public CommandViewModel(ITemplateFactory templateFactory,
IEnumerable<IWidgetViewModel> commands)
public CommandViewModel(ITemplateFactory templateFactory,
IServiceFactory serviceFactory,
IEnumerable<IWidgetViewModel> widgets) : base(serviceFactory)
{
TemplateFactory = templateFactory;
AddRange(commands);
AddRange(widgets);
}
public ITemplateFactory TemplateFactory { get; }