public MessageFlowViewModel( IServiceControl serviceControl, IEventAggregator eventAggregator, IWindowManagerEx windowManager, IContainer container, Func <ExceptionDetailViewModel> exceptionDetail, ISettingsProvider settingsProvider, MessageSelectionContext selectionContext, IWorkNotifier workNotifier) { this.workNotifier = workNotifier; this.serviceControl = serviceControl; this.eventAggregator = eventAggregator; this.windowManager = windowManager; this.settingsProvider = settingsProvider; selection = selectionContext; this.exceptionDetail = exceptionDetail; CopyConversationIDCommand = container.Resolve <CopyConversationIDCommand>(); CopyMessageURICommand = container.Resolve <CopyMessageURICommand>(); RetryMessageCommand = container.Resolve <RetryMessageCommand>(); SearchByMessageIDCommand = container.Resolve <SearchByMessageIDCommand>(); Diagram = new FlowDiagramModel(); nodeMap = new ConcurrentDictionary <string, MessageNode>(); }
public MessageHeadersViewModel(MessageSelectionContext selectionContext) { selection = selectionContext; KeyValues = new ReactiveList <MessageHeaderKeyValue> { ResetChangeThreshold = 0 }; }
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 GatewayHeaderViewModel( IEventAggregator eventAggregator, IContentDecoder <IList <HeaderInfo> > decoder, MessageSelectionContext selectionContext) : base(eventAggregator, decoder, selectionContext) { DisplayName = "Gateway"; }
public SagaWindowViewModel(IEventAggregator eventAggregator, IServiceControl serviceControl, IClipboard clipboard, MessageSelectionContext selectionContext) { this.eventAggregator = eventAggregator; this.serviceControl = serviceControl; this.selection = selectionContext; ShowSagaNotFoundWarning = false; CopyCommand = this.CreateCommand(arg => clipboard.CopyTo(arg.ToString())); }
public GeneralHeaderViewModel( IEventAggregator eventAggregator, IContentDecoder <IList <HeaderInfo> > decoder, MessageSelectionContext selectionContext) : base(eventAggregator, decoder, selectionContext) { this.decoder = decoder; DisplayName = "General"; }
public void TestInitialize() { EventAggregator = Substitute.For <IEventAggregator>(); ServiceControl = Substitute.For <IServiceControl>(); HexContent = Substitute.For <HexContentViewModel>(); JsonContent = Substitute.For <JsonMessageViewModel>(); XmlContent = Substitute.For <XmlMessageViewModel>(); Selection = new MessageSelectionContext(EventAggregator); MessageBodyFunc = () => new MessageBodyViewModel(HexContent, JsonContent, XmlContent, ServiceControl, EventAggregator, Selection); }
public void TestInitialize() { eventAggregator = Substitute.For <IEventAggregator>(); serviceControl = Substitute.For <IServiceControl>(); hexContent = Substitute.For <HexContentViewModel>(); jsonContent = Substitute.For <JsonMessageViewModel>(); xmlContent = Substitute.For <XmlMessageViewModel>(); selection = new MessageSelectionContext(eventAggregator); messageBodyFunc = () => new MessageBodyViewModel(hexContent, jsonContent, xmlContent, serviceControl, eventAggregator, selection); }
protected HeaderInfoViewModelBase( IEventAggregator eventAggregator, IContentDecoder <IList <HeaderInfo> > decoder, MessageSelectionContext selectionContext) { this.decoder = decoder; EventAggregator = eventAggregator; Selection = selectionContext; ConditionsMap = new Dictionary <Func <HeaderInfo, bool>, Action <HeaderInfo> >(); MapHeaderKeys(); }
public void TestInitialize() { var eventAggregator = Substitute.For <IEventAggregator>(); var workNotifier = Substitute.For <IWorkNotifier>(); var clipboard = Substitute.For <IClipboard>(); var windowManager = Substitute.For <IWindowManagerEx>(); serviceControl = Substitute.For <IServiceControl>(); messageSelectionContext = new MessageSelectionContext(eventAggregator); viewModel = new SagaWindowViewModel(eventAggregator, workNotifier, serviceControl, clipboard, windowManager, messageSelectionContext); }
public MessageBodyViewModel( HexContentViewModel hexViewer, JsonMessageViewModel jsonViewer, XmlMessageViewModel xmlViewer, IServiceControl serviceControl, IEventAggregator eventAggregator, MessageSelectionContext selectionContext) { this.serviceControl = serviceControl; this.eventAggregator = eventAggregator; this.selection = selectionContext; HexViewer = hexViewer; XmlViewer = xmlViewer; JsonViewer = jsonViewer; }
public MessageBodyViewModel( HexContentViewModel hexViewer, JsonMessageViewModel jsonViewer, XmlMessageViewModel xmlViewer, IServiceControl serviceControl, IWorkNotifier workNotifier, MessageSelectionContext selectionContext) { this.serviceControl = serviceControl; this.workNotifier = workNotifier; selection = selectionContext; HexViewer = hexViewer; XmlViewer = xmlViewer; JsonViewer = jsonViewer; }
public SagaWindowViewModel( IEventAggregator eventAggregator, IWorkNotifier workNotifier, IServiceControl serviceControl, IClipboard clipboard, IWindowManagerEx windowManager, MessageSelectionContext selectionContext) { this.eventAggregator = eventAggregator; this.workNotifier = workNotifier; this.serviceControl = serviceControl; this.windowManager = windowManager; selection = selectionContext; ShowSagaNotFoundWarning = false; CopyCommand = Command.Create(arg => clipboard.CopyTo(InstallScriptText)); ShowEntireContentCommand = Command.Create(arg => ShowEntireContent((SagaUpdatedValue)arg)); }
public ChangeSelectedMessageCommand(MessageSelectionContext selectionContext) { selection = selectionContext; }
public MessageHeadersViewModel(MessageSelectionContext selectionContext) { selection = selectionContext; KeyValues = new ObservableCollection <MessageHeaderKeyValue>(); }
public ShowSagaCommand(IEventAggregator eventAggregator, MessageSelectionContext selectionContext) { this.eventAggregator = eventAggregator; selection = selectionContext; }