Пример #1
0
 public ShutdownCommandHandler(IAppCommandHub appCommandHub, IMessageBus messageBus, IAppMeta appMeta, ILogger logger)
 {
     this._appCommandHub = appCommandHub;
     this._messageBus    = messageBus;
     this._appMeta       = appMeta;
     this._logger        = logger.ForContext <ShutdownCommandHandler>();
 }
Пример #2
0
        public MainViewModel(
            IViewModelWindowManager viewModelWindowManager,
            IAppCommandHub appCommandHub,
            IUiCommandHub uiCommandHub,
            ForwardRuleDispatch forwardRuleDispatch,
            Func <MessageListViewModel> messageListViewModelFactory,
            Func <MessageDetailViewModel> messageDetailViewModelFactory,
            UiLogSinkQueue uiLogSinkQueue,
            AppResourceLocator resourceLocator)
        {
            this._viewModelWindowManager = viewModelWindowManager;
            this._appCommandHub          = appCommandHub;
            this._uiCommandHub           = uiCommandHub;
            this._forwardRuleDispatch    = forwardRuleDispatch;

            this.MessageListViewModel   = messageListViewModelFactory();
            this.MessageDetailViewModel = messageDetailViewModelFactory();

            this.MessageListViewModel.ConductWith(this);
            this.MessageDetailViewModel.ConductWith(this);

            this._uiLogSinkQueue  = uiLogSinkQueue;
            this._resourceLocator = resourceLocator;

            this.LogText = this._resourceLocator.GetResourceString("LogClientSink.html");

            this.SetupObservables();
        }
Пример #3
0
        public NotificationMenuCoordinator(
            IAppCommandHub appCommandHub,
            IUiCommandHub uiCommandHub,
            AppResourceLocator resourceLocator)
        {
            this._appCommandHub   = appCommandHub;
            this._uiCommandHub    = uiCommandHub;
            this._resourceLocator = resourceLocator;

            this.InitObservables();
        }