Ejemplo n.º 1
0
 public SagaWindowViewModel(IEventAggregator eventAggregator, IServiceControl serviceControl, IClipboard clipboard)
 {
     this.eventAggregator    = eventAggregator;
     this.serviceControl     = serviceControl;
     ShowSagaNotFoundWarning = false;
     CopyCommand             = this.CreateCommand(arg => clipboard.CopyTo(arg.ToString()));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// copy the report to the clipboard, using the clipboard implementation supplied
        /// </summary>
        public void CopyReportToClipboard()
        {
            ExceptionReport exceptionReport = CreateExceptionReport();

            _clipboard.CopyTo(exceptionReport.ToString());
            _view.ProgressMessage = string.Format("{0} copied to clipboard", ReportInfo.TitleText);
        }
 public SagaWindowViewModel(IEventAggregator eventAggregator, IServiceControl serviceControl, IClipboard clipboard, MessageSelectionContext selectionContext)
 {
     this.eventAggregator    = eventAggregator;
     this.serviceControl     = serviceControl;
     selection               = selectionContext;
     ShowSagaNotFoundWarning = false;
     CopyCommand             = this.CreateCommand(arg => clipboard.CopyTo(InstallScriptText));
 }
Ejemplo n.º 4
0
        public virtual void CopyMessageXml()
        {
            var content = _stringDecoder.Decode(SelectedMessage.BodyRaw);

            if (content.IsParsed)
            {
                _clipboard.CopyTo(content.Value);
            }
        }
        public void CopyMessageXml()
        {
            var content = GetMessageBody();

            if (!content.IsEmpty())
            {
                _clipboard.CopyTo(content);
            }
        }
        public override void Execute(object parameter)
        {
            var message = parameter as StoredMessage;

            if (message == null)
            {
                return;
            }

            clipboard.CopyTo(message.ConversationId);
        }
Ejemplo n.º 7
0
        public override void Execute(object parameter)
        {
            var message = parameter as StoredMessage;

            if (message == null)
            {
                return;
            }

            clipboard.CopyTo(serviceControl.CreateServiceInsightUri(message).ToString());
        }
Ejemplo n.º 8
0
        public virtual void CopyHeaderInfo()
        {
            var serializer = new XmlSerializer(typeof(HeaderInfo[]));

            using (var stream = new MemoryStream())
            {
                var headers = new List <HeaderInfo>(Items);
                serializer.Serialize(stream, headers.ToArray());
                var content = stream.ReadString();
                _clipboard.CopyTo(content);
            }
        }
Ejemplo n.º 9
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 void CopyPropertyValue(object value)
 {
     _clipboard.CopyTo(value.ToString());
 }
Ejemplo n.º 11
0
 void Copy()
 {
     clipboard.CopyTo(Logs.Aggregate("", (s, l) => s + l.Log));
 }
Ejemplo n.º 12
0
 public void CopyHeaders()
 {
     clipboard.CopyTo(generalHeaderDisplay.HeaderContent);
 }
 public void CopyMessageId()
 {
     _clipboard.CopyTo(_serviceControl.GetUri(FocusedRow).ToString());
 }
Ejemplo n.º 14
0
 public void CopyConversationId(StoredMessage message)
 {
     _clipboard.CopyTo(message.ConversationId);
 }
Ejemplo n.º 15
0
        public virtual void CopyMessageId()
        {
            var msg = FocusedMessage;

            _clipboard.CopyTo(msg.Id);
        }