refactor mapping again

This commit is contained in:
TheXamlGuy
2024-01-07 19:04:24 +00:00
parent 2e8af23784
commit bc29fbc805
4 changed files with 6 additions and 10 deletions
@@ -1,4 +1,5 @@
namespace Hyperbar.Windows.Primary;
public class WidgetComponentMappingHandler(PrimaryWidgetConfiguration configuration,
@@ -6,7 +7,7 @@ public class WidgetComponentMappingHandler(PrimaryWidgetConfiguration configurat
IMediator mediator) :
IMappingHandler<PrimaryWidgetConfiguration, IEnumerable<IWidgetComponentViewModel>>
{
public IEnumerable<IWidgetComponentViewModel> Handle()
public IEnumerable<IWidgetComponentViewModel> Map()
{
foreach (IPrimaryCommandConfiguration item in configuration)
{