public ShutdownCommandHandler(IAppCommandHub appCommandHub, IMessageBus messageBus, IAppMeta appMeta, ILogger logger) { this._appCommandHub = appCommandHub; this._messageBus = messageBus; this._appMeta = appMeta; this._logger = logger.ForContext <ShutdownCommandHandler>(); }
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(); }
public NotificationMenuCoordinator( IAppCommandHub appCommandHub, IUiCommandHub uiCommandHub, AppResourceLocator resourceLocator) { this._appCommandHub = appCommandHub; this._uiCommandHub = uiCommandHub; this._resourceLocator = resourceLocator; this.InitObservables(); }