示例#1
0
        public async Task CreateQueue()
        {
            var screen = _screenFactory.CreateScreen <IQueueCreationViewModel>();
            var result = _windowManager.ShowDialog(screen);

            if (result.GetValueOrDefault(false))
            {
                await QueueExplorer.RefreshData();
            }
        }
示例#2
0
        public async void RefreshAll()
        {
            await EndpointExplorer.RefreshData();

            await QueueExplorer.RefreshData();

            await Messages.RefreshMessages();

            await SagaWindow.RefreshSaga();
        }
示例#3
0
        public void ConnectToMessageQueue()
        {
            var machineViewModel = _screenFactory.CreateScreen <IConnectToMachineViewModel>();
            var result           = _windowManager.ShowDialog(machineViewModel);

            if (result.GetValueOrDefault(false))
            {
                QueueExplorer.ConnectToQueue(machineViewModel.ComputerName);
            }
        }
示例#4
0
        private async Task RefreshExplorer()
        {
            if (SelectedExplorerItem.IsEndpointExplorerSelected())
            {
                await EndpointExplorer.PartialRefresh();
            }

            if (SelectedExplorerItem.IsQueueExplorerSelected())
            {
                await QueueExplorer.PartialRefresh();
            }
        }
示例#5
0
 public void DeleteCurrentQueue()
 {
     QueueExplorer.DeleteSelectedQueue();
 }