public SequenceDiagramViewModel( IServiceControl serviceControl, ISettingsProvider settingsProvider, MessageSelectionContext selectionContext, DiagramLegendViewModel diagramLegend, CopyConversationIDCommand copyConversationIDCommand, CopyMessageURICommand copyMessageURICommand, RetryMessageCommand retryMessageCommand, SearchByMessageIDCommand searchByMessageIDCommand, ChangeSelectedMessageCommand changeSelectedMessageCommand, ShowExceptionCommand showExceptionCommand, ReportMessageCommand reportMessageCommand) { this.serviceControl = serviceControl; this.settingsProvider = settingsProvider; Selection = selectionContext; CopyConversationIDCommand = copyConversationIDCommand; CopyMessageURICommand = copyMessageURICommand; RetryMessageCommand = retryMessageCommand; SearchByMessageIDCommand = searchByMessageIDCommand; ChangeSelectedMessageCommand = changeSelectedMessageCommand; ShowExceptionCommand = showExceptionCommand; ReportMessageCommand = reportMessageCommand; OpenLink = Command.Create(arg => new NetworkOperations().Browse(SequenceDiagramDocumentationUrl)); DiagramLegend = diagramLegend; DiagramItems = new DiagramItemCollection(); HeaderItems = new DiagramItemCollection(); settings = settingsProvider.GetSettings <SequenceDiagramSettings>(); ShowLegend = settings.ShowLegend; }
public MessageFlowViewModel( IServiceControl serviceControl, IEventAggregator eventAggregator, IWindowManagerEx windowManager, SearchBarViewModel searchBar, MessageListViewModel messageList, Func <ExceptionDetailViewModel> exceptionDetail, ISettingsProvider settingsProvider, EndpointExplorerViewModel endpointExplorer, IClipboard clipboard) { this.serviceControl = serviceControl; this.eventAggregator = eventAggregator; this.windowManager = windowManager; this.settingsProvider = settingsProvider; this.messageList = messageList; this.endpointExplorer = endpointExplorer; this.exceptionDetail = exceptionDetail; CopyConversationIDCommand = new CopyConversationIDCommand(clipboard); CopyMessageURICommand = new CopyMessageURICommand(clipboard, serviceControl); SearchByMessageIDCommand = new SearchByMessageIDCommand(eventAggregator, searchBar); RetryMessageCommand = new RetryMessageCommand(eventAggregator, serviceControl); Diagram = new MessageFlowDiagram(); nodeMap = new ConcurrentDictionary <string, MessageNode>(); }
public MessageListViewModel( IEventAggregator eventAggregator, IWorkNotifier workNotifier, IServiceControl serviceControl, SearchBarViewModel searchBarViewModel, GeneralHeaderViewModel generalHeaderDisplay, MessageSelectionContext selectionContext, IClipboard clipboard, ISettingsProvider settingsProvider) { SearchBar = searchBarViewModel; Selection = selectionContext; this.clipboard = clipboard; this.settingsProvider = settingsProvider; this.eventAggregator = eventAggregator; this.workNotifier = workNotifier; this.serviceControl = serviceControl; this.generalHeaderDisplay = generalHeaderDisplay; Items.Add(SearchBar); RetryMessageCommand = new RetryMessageCommand(eventAggregator, workNotifier, serviceControl); CopyMessageIdCommand = new CopyMessageURICommand(clipboard, serviceControl); CopyHeadersCommand = Command.Create(CopyHeaders, generalHeaderDisplay.Changed .Where(pc => pc.PropertyName == nameof(GeneralHeaderViewModel.HeaderContent)) .Select(s => !((string)s.Value).IsEmpty())); Rows = new BindableCollection <StoredMessage>(); }
public MessageListViewModel( IEventAggregator eventAggregator, IServiceControl serviceControl, SearchBarViewModel searchBarViewModel, GeneralHeaderViewModel generalHeaderDisplay, IClipboard clipboard) { this.clipboard = clipboard; this.eventAggregator = eventAggregator; this.serviceControl = serviceControl; this.generalHeaderDisplay = generalHeaderDisplay; SearchBar = searchBarViewModel; Items.Add(SearchBar); RetryMessageCommand = new RetryMessageCommand(eventAggregator, serviceControl); CopyMessageIdCommand = new CopyMessageURICommand(clipboard, serviceControl); CopyHeadersCommand = this.CreateCommand(CopyHeaders, generalHeaderDisplay.WhenAnyValue(ghd => ghd.HeaderContent).Select(s => !s.IsEmpty())); Rows = new BindableCollection <StoredMessage>(); this.WhenAnyValue(vm => vm.FocusedRow) .Throttle(TimeSpan.FromMilliseconds(500), RxApp.MainThreadScheduler) .Subscribe(_ => DoFocusedRowChanged()); }
public SequenceDiagramViewModel( IClipboard clipboard, IEventAggregator eventAggregator, IWindowManagerEx windowManager, IServiceControl serviceControl, Func <ExceptionDetailViewModel> exceptionDetailViewModel, SearchBarViewModel searchBar, EndpointExplorerViewModel endpointExplorer, MessageListViewModel messageList) { this.windowManager = windowManager; this.eventAggregator = eventAggregator; this.serviceControl = serviceControl; this.exceptionDetailViewModel = exceptionDetailViewModel; CopyConversationIDCommand = new CopyConversationIDCommand(clipboard); CopyMessageURICommand = new CopyMessageURICommand(clipboard, serviceControl); RetryMessageCommand = new RetryMessageCommand(eventAggregator, serviceControl); SearchByMessageIDCommand = new SearchByMessageIDCommand(eventAggregator, searchBar); ShowSagaCommand = new ShowSagaCommand(eventAggregator, endpointExplorer, messageList); }
public MessageListViewModel( IEventAggregator eventAggregator, IServiceControl serviceControl, SearchBarViewModel searchBarViewModel, GeneralHeaderViewModel generalHeaderDisplay, MessageSelectionContext selectionContext, IClipboard clipboard) { this.SearchBar = searchBarViewModel; this.Selection = selectionContext; this.clipboard = clipboard; this.eventAggregator = eventAggregator; this.serviceControl = serviceControl; this.generalHeaderDisplay = generalHeaderDisplay; Items.Add(SearchBar); RetryMessageCommand = new RetryMessageCommand(eventAggregator, serviceControl); CopyMessageIdCommand = new CopyMessageURICommand(clipboard, serviceControl); CopyHeadersCommand = this.CreateCommand(CopyHeaders, generalHeaderDisplay.WhenAnyValue(ghd => ghd.HeaderContent).Select(s => !s.IsEmpty())); Rows = new BindableCollection <StoredMessage>(); }