main
1using gorilla.commons.utility;
2using MoMoney.Presentation;
3using MoMoney.Service.Infrastructure.Threading;
4
5namespace MoMoney.Modules.Core
6{
7 public class LoadPresentationModulesCommand : ILoadPresentationModulesCommand
8 {
9 readonly Registry<IModule> registry;
10 readonly CommandProcessor processor;
11
12 public LoadPresentationModulesCommand(Registry<IModule> registry, CommandProcessor processor)
13 {
14 this.registry = registry;
15 this.processor = processor;
16 }
17
18 public void run()
19 {
20 registry.all().each(x => processor.add(x));
21 }
22 }
23}