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()));
 }
Ejemplo n.º 6
0
 public GeneralHeaderViewModel(
     IEventAggregator eventAggregator,
     IContentDecoder <IList <HeaderInfo> > decoder,
     MessageSelectionContext selectionContext)
     : base(eventAggregator, decoder, selectionContext)
 {
     this.decoder = decoder;
     DisplayName  = "General";
 }
Ejemplo n.º 7
0
        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);
        }
Ejemplo n.º 8
0
        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);
        }
Ejemplo n.º 9
0
 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();
 }
Ejemplo n.º 10
0
        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;
        }
Ejemplo n.º 12
0
        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;
        }
Ejemplo n.º 13
0
 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;
 }
Ejemplo n.º 15
0
 public MessageHeadersViewModel(MessageSelectionContext selectionContext)
 {
     selection = selectionContext;
     KeyValues = new ObservableCollection <MessageHeaderKeyValue>();
 }
Ejemplo n.º 16
0
 public ShowSagaCommand(IEventAggregator eventAggregator, MessageSelectionContext selectionContext)
 {
     this.eventAggregator = eventAggregator;
     selection            = selectionContext;
 }